generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Run CI after Dependabot Auto Merges (#365)
- Loading branch information
Johannes Schneider
authored
Mar 19, 2024
1 parent
e97462e
commit 5f50a5c
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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'}} | ||
|
@@ -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}} |