Skip to content

Commit f0d53ee

Browse files
authored
Merge pull request #23 from contentful/revert-revery
feat!: use github-actions token for merging PR
2 parents f6d77f6 + 7ef1e27 commit f0d53ee

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,11 @@ jobs:
3535
permissions:
3636
contents: write
3737
id-token: write
38+
pull-request: write
3839
runs-on: ubuntu-latest
3940
if: github.actor == 'dependabot[bot]'
4041
steps:
41-
- uses: contentful/github-auto-merge@v1
42+
- uses: contentful/github-auto-merge@v2
4243
with:
4344
VAULT_URL: ${{ secrets.VAULT_URL }} # this is an organisation level secret, you do not need to add it to your repo
4445
```

action.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,6 @@ runs:
8989
echo "Auto merging PR using method $merge_method"
9090
gh pr merge --delete-branch "--$merge_method" --auto ${{ github.event.pull_request.html_url }}
9191
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 }}

example.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@ jobs:
77
permissions:
88
contents: write
99
id-token: write
10+
pull-request: write
1011
runs-on: ubuntu-latest
1112
if: github.actor == 'dependabot[bot]'
1213
steps:
13-
- uses: contentful/github-auto-merge@v1
14+
- uses: contentful/github-auto-merge@v2
1415
with:
1516
VAULT_URL: ${{ secrets.VAULT_URL }} # this is an organisation level secret, you do not need to add it to your repo

0 commit comments

Comments
 (0)