Skip to content

Commit

Permalink
🔥 hotfix: fix automerge
Browse files Browse the repository at this point in the history
Signed-off-by: Zac Rosenbauer <zac@joggr.io>
  • Loading branch information
zrosenbauer authored May 23, 2024
1 parent df3018f commit 731eee2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@ jobs:
needs: [ci]
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
pull-requests: write
issues: write
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request'}} # Detect that the PR author is dependabot
steps:
- name: Enable auto-merge for Dependabot PRs
run: gh pr merge --auto --squash "$PR_URL" # Use GitHub CLI to automatically merge the PR
env:
PR_URL: ${{github.event.pull_request.html_url}}
GITHUB_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}

0 comments on commit 731eee2

Please sign in to comment.