Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/dependabot-automerge.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: dependabot merger
name: 'Dependabot Auto-Merge'

on:
workflow_dispatch:
Expand All @@ -7,6 +7,7 @@ on:

env:
DEPENDABOT_GROUPS: |
production-major group
production-minor-patch group
plugins group
test group
Expand All @@ -17,9 +18,6 @@ jobs:
permissions:
contents: read # all write operations use app token
steps:
- name: Checkout
uses: actions/checkout@v7

- name: 'Create GitHub App Token'
id: app-token
uses: actions/create-github-app-token@v3
Expand All @@ -31,7 +29,11 @@ jobs:
permission-contents: write
permission-pull-requests: write

- name: Approve and Merge PRs
- name: Checkout
uses: actions/checkout@v7


- name: 'Approve and Merge PRs'
run: |
PRS=$(gh pr list --app "dependabot" --state "open" --json number,title)
PR_NUMBERS=
Expand All @@ -51,7 +53,7 @@ jobs:
if [[ -z "$PR_NUMBER" ]]; then
continue
fi

echo "[DEBUG] Approving and Merging PR #$PR_NUMBER"
gh pr merge "$PR_NUMBER" --auto --squash
gh pr review "$PR_NUMBER" --approve
Expand Down