Skip to content

Commit

Permalink
fix: Run CI after Dependabot Auto Merges (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Schneider authored Mar 19, 2024
1 parent e97462e commit 5f50a5c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,18 @@ jobs:
uses: dependabot/[email protected]
with:
github-token: '${{ secrets.GITHUB_TOKEN }}'
- name: "Prepare git"
run: |
git config --global user.email "[email protected]"
git config --global user.name "SAP Cloud SDK Bot"
- name: comment major updates
if : ${{steps.metadata.outputs.update-type == 'version-update:semver-major' }}
run: |
gh pr comment $PR_URL --body "PR **not approved** because it includes a major update of a dependency"
gh pr edit $PR_URL --add-label "please review"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.BOT_SDK_JS_FOR_DOCS_REPO_PR}}
- name: approve and merge
if: ${{steps.metadata.outputs.update-type == 'version-update:semver-patch' ||
steps.metadata.outputs.update-type == 'version-update:semver-minor'}}
Expand All @@ -34,4 +38,4 @@ jobs:
gh pr merge --auto --squash "$PR_URL"
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
GITHUB_TOKEN: ${{secrets.BOT_SDK_JS_FOR_DOCS_REPO_PR}}

0 comments on commit 5f50a5c

Please sign in to comment.