Skip to content

Commit

Permalink
[ci] Run dependabot with app credentials (#1529)
Browse files Browse the repository at this point in the history
  • Loading branch information
alvicsam authored Mar 7, 2024
1 parent 3b468df commit 1e466c1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/dependabot-auto-merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,16 @@ on:
jobs:
merge:
runs-on: ubuntu-latest
# run action only on dependabot branches
if: github.actor == 'dependabot[bot]'
steps:
- uses: actions/checkout@v4
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ secrets.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_KEY }}
- uses: ahmadnassri/action-dependabot-auto-merge@v2
with:
target: patch
github-token: ${{ secrets.DEPENDABOT_AUTO_MERGE_TOKEN }}
github-token: ${{ steps.app-token.outputs.token }}

0 comments on commit 1e466c1

Please sign in to comment.