Skip to content

Commit 43892f3

Browse files
committed
Auto-approve dependabot PRs
- approved by bot user - also trigger IT workflows by bot user so that follow-up workflows get triggered (status reporting)
1 parent 7017047 commit 43892f3

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,7 @@ jobs:
1818
steps:
1919
- name: Enable auto-merge
2020
run: gh pr merge --auto --rebase --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}"
21+
- name: Approve dependabot PR
22+
env:
23+
GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
24+
run: gh pr review --approve --repo "${{ github.repository }}" "${{ github.event.pull_request.number }}"

.github/workflows/fork-integration-trigger.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ jobs:
4545
-f content=rocket
4646
4747
- name: Trigger integration tests
48+
env:
49+
# need bot token, otherwise the IT workflows won't trigger fork-integration-status-reporter.yml
50+
GH_TOKEN: ${{ secrets.BOT_GH_TOKEN }}
4851
run: |
4952
# run all integration test workflows in context of main branch, passing the PR head SHA as an input
5053
for workflow in s3-integration.yml gcs-integration.yml alioss-integration.yml azurebs-integration.yml dav-integration.yml; do

0 commit comments

Comments
 (0)