Skip to content

Commit 5ac1903

Browse files
Add action check to auto-merge workflow
- Ensure workflow only runs when review is submitted (not dismissed or other events) - Add github.event.action == 'submitted' check for better event filtering Co-authored-by: thomasturrell <1552612+thomasturrell@users.noreply.github.com>
1 parent 0e73cd7 commit 5ac1903

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/dependabot-auto-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ permissions:
99
jobs:
1010
auto-merge:
1111
runs-on: ubuntu-latest
12-
if: github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
12+
if: github.event.action == 'submitted' && github.event.review.state == 'approved' && github.event.pull_request.user.login == 'dependabot[bot]'
1313
steps:
1414
- name: Get Dependabot metadata
1515
id: metadata

0 commit comments

Comments
 (0)