File tree 3 files changed +7
-3
lines changed
3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,11 @@ jobs:
35
35
permissions:
36
36
contents: write
37
37
id-token: write
38
+ pull-request: write
38
39
runs-on: ubuntu-latest
39
40
if: github.actor == 'dependabot[bot]'
40
41
steps:
41
- - uses: contentful/github-auto-merge@v1
42
+ - uses: contentful/github-auto-merge@v2
42
43
with:
43
44
VAULT_URL: ${{ secrets.VAULT_URL }} # this is an organisation level secret, you do not need to add it to your repo
44
45
` ` `
Original file line number Diff line number Diff line change 89
89
echo "Auto merging PR using method $merge_method"
90
90
gh pr merge --delete-branch "--$merge_method" --auto ${{ github.event.pull_request.html_url }}
91
91
env :
92
- GITHUB_TOKEN : ${{ steps.vault.outputs.GITHUB_MERGE_TOKEN }}
92
+ # Note: The GH_TOKEN env var is required for now, even though it contradicts GH's documentation. If not present we
93
+ # were seeing an error message like this one: https://github.com/github/docs/issues/21930#issuecomment-1310122605
94
+ GH_TOKEN : ${{ github.token }}
Original file line number Diff line number Diff line change 7
7
permissions :
8
8
contents : write
9
9
id-token : write
10
+ pull-request : write
10
11
runs-on : ubuntu-latest
11
12
if : github.actor == 'dependabot[bot]'
12
13
steps :
13
- - uses : contentful/github-auto-merge@v1
14
+ - uses : contentful/github-auto-merge@v2
14
15
with :
15
16
VAULT_URL : ${{ secrets.VAULT_URL }} # this is an organisation level secret, you do not need to add it to your repo
You can’t perform that action at this time.
0 commit comments