Skip to content

Use the new ARM runners by GitHub #110

Use the new ARM runners by GitHub

Use the new ARM runners by GitHub #110

name: Dependabot Auto-Merge
on:
pull_request_target:
types: [opened, synchronize, reopened]
check_suite:
types: [completed]
permissions:
contents: write
pull-requests: write
jobs:
dependabot:
runs-on: ubuntu-24.04
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- name: Get PR URL
if: ${{ github.event_name == 'pull_request_target' }}
run: echo "PR_URL=${{ github.event.pull_request.html_url }}" >> $GITHUB_ENV
- name: Check CodeQL status
if: ${{ github.event_name == 'check_suite' && github.event.check_suite.conclusion == 'success' && github.event.check_suite.app.name == 'CodeQL' }}
run: echo "CodeQL check succeeded"
- name: Enable auto-merge for Dependabot PRs
if: ${{ github.event_name == 'check_suite' && github.event.check_suite.conclusion == 'success' && github.event.check_suite.app.name == 'CodeQL' }}
run: gh pr merge --auto -s "$PR_URL" --admin -d
env:
PR_URL: ${{ env.PR_URL }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}