Skip to content

Commit

Permalink
Create merge-all-dependabot-pr.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lacti committed Jul 17, 2023
1 parent b4b8628 commit 24021e6
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/merge-all-dependabot-pr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Merge all dependabot PR
on:
workflow_dispatch:

permissions:
contents: write
pull-requests: write

jobs:
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Merge all Dependabot PRs
run: gh pr list --label "dependencies" --json number -q '.[].number' | xargs -n1 gh pr merge --auto --squash
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 24021e6

Please sign in to comment.