Skip to content

Commit e93334b

Browse files
author
Johannes Schneider
authored
fix: switch github token for auto merges
1 parent e97462e commit e93334b

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/dependabot-automerge.yaml

+6-2
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,18 @@ jobs:
1818
uses: dependabot/[email protected]
1919
with:
2020
github-token: '${{ secrets.GITHUB_TOKEN }}'
21+
- name: "Prepare git"
22+
run: |
23+
git config --global user.email "[email protected]"
24+
git config --global user.name "SAP Cloud SDK Bot"
2125
- name: comment major updates
2226
if : ${{steps.metadata.outputs.update-type == 'version-update:semver-major' }}
2327
run: |
2428
gh pr comment $PR_URL --body "PR **not approved** because it includes a major update of a dependency"
2529
gh pr edit $PR_URL --add-label "please review"
2630
env:
2731
PR_URL: ${{github.event.pull_request.html_url}}
28-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
32+
GITHUB_TOKEN: ${{secrets.BOT_SDK_JS_FOR_DOCS_REPO_PR}}
2933
- name: approve and merge
3034
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
3135
steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
@@ -34,4 +38,4 @@ jobs:
3438
gh pr merge --auto --squash "$PR_URL"
3539
env:
3640
PR_URL: ${{github.event.pull_request.html_url}}
37-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
41+
GITHUB_TOKEN: ${{secrets.BOT_SDK_JS_FOR_DOCS_REPO_PR}}

0 commit comments

Comments
 (0)