Skip to content

Commit 0512ba5

Browse files
ci: add more env vars and debug logging
1 parent 88dedaf commit 0512ba5

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/automerge.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,21 @@ on:
2222

2323
status: {}
2424

25+
permissions:
26+
contents: write
27+
2528
env:
26-
# required labels for pull request to be merged
2729
MERGE_LABELS: "autorelease: pending"
28-
29-
# count of required approvals
30+
MERGE_REMOVE_LABELS: "automerge, autorelease: pending"
31+
MERGE_METHOD: "squash"
3032
MERGE_REQUIRED_APPROVALS: 0
33+
MERGE_RETRIES: "3"
34+
MERGE_RETRY_SLEEP: "10000"
3135

3236
# labels that need to be present for a pull request to be updated
3337
# * updating will only happen when the option "Require branches to be up to date before merging" is enabled in the branch protection rules
3438
UPDATE_LABELS: ""
39+
UPDATE_METHOD: "rebase"
3540

3641
jobs:
3742
automerge:
@@ -43,6 +48,7 @@ jobs:
4348
uses: "pascalgn/automerge-action@v0.15.6"
4449
env:
4550
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
51+
LOG: "DEBUG" # DEBUG, INFO, WARN, ERROR, TRACE
4652

4753
- name: feedback
4854
if: ${{ steps.automerge.outputs.mergeResult == 'merged' }}

0 commit comments

Comments
 (0)