Skip to content

Commit 4a1e257

Browse files
fix: allow auto-fix workflow to run on dependabot PRs
Dependabot PRs frequently need license updates and can't be merged until fixed. The auto-fix workflow helps by creating a child PR with the license changes, making it easy to merge both together.
1 parent d191f50 commit 4a1e257

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/auto-fix-licenses.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,11 @@ permissions:
1919
jobs:
2020
auto-fix-licenses:
2121
runs-on: ubuntu-latest
22-
# Only run on PRs targeting main, from same repo, not drafts, not bots
22+
# Only run on PRs targeting main, from same repo, not drafts
2323
if: |
2424
github.event.pull_request.base.ref == 'main' &&
2525
github.event.pull_request.head.repo.full_name == github.repository &&
26-
github.event.pull_request.draft == false &&
27-
github.actor != 'dependabot[bot]'
26+
github.event.pull_request.draft == false
2827
2928
steps:
3029
- name: Check out base PR branch

0 commit comments

Comments
 (0)