Skip to content

Commit 25e8bbe

Browse files
committed
. e Enable auto-merge for dependabot jobs
1 parent cf198b6 commit 25e8bbe

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/github_actions_build.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,3 +244,20 @@ jobs:
244244
run: |
245245
cd ${{ env.BUILD_PATH }}
246246
ctest --verbose --output-on-failure -C Debug
247+
248+
auto-merge:
249+
needs: [Linux, macOS, Windows]
250+
runs-on: ubuntu-latest
251+
steps:
252+
- name: Check out repo
253+
uses: actions/checkout@v4
254+
- name: auto-merge
255+
if: |
256+
github.actor == 'dependabot[bot]' &&
257+
github.event_name == 'pull_request'
258+
run: |
259+
gh pr merge --auto --rebase "$PR_URL"
260+
env:
261+
PR_URL: ${{github.event.pull_request.html_url}}
262+
# this secret needs to be in the settings.secrets.dependabot
263+
GITHUB_TOKEN: ${{secrets.GH_ACTION_TOKEN}}

0 commit comments

Comments
 (0)