summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorseth <[email protected]>2023-10-07 11:20:33 -0400
committerseth <[email protected]>2023-10-17 17:19:43 -0400
commitb70643d09a5bbcd72aceb425548f4b4515b056ca (patch)
treeabfc20c353d5922a5314db0f4c3dbcd53eb23e7d
parent6b34b739ec66d3ce65a9f8a17376e70d46c10d93 (diff)
actions: fix staging-automerge
-rw-r--r--.github/workflows/staging-automerge.yaml10
1 files changed, 3 insertions, 7 deletions
diff --git a/.github/workflows/staging-automerge.yaml b/.github/workflows/staging-automerge.yaml
index 3f43d88..101a254 100644
--- a/.github/workflows/staging-automerge.yaml
+++ b/.github/workflows/staging-automerge.yaml
@@ -15,25 +15,21 @@ jobs:
steps:
- uses: actions/checkout@v4
+ with:
+ fetch-depth: 0
- name: create pr
run: |
- {
- echo 'PR<<EOF'
gh pr create \
- --repo ${{ github.repository }} \
--base main \
--head ${{ github.ref_name }} \
--title "auto-merge: ${{ github.ref_name }} -> main" \
--fill
- echo EOF
- } >> "$GITHUB_ENV"
-
env:
GITHUB_TOKEN: ${{ github.token }}
- name: enable auto-merge
- run: gh pr merge --auto --rebase "$PR"
+ run: gh pr merge --auto --rebase --match-head-commit ${{ github.sha }}
env:
GITHUB_TOKEN: ${{ github.token }}