Skip to content

Commit 19d1ae9

Browse files
committed
fix(ci): remove github-actions[bot] from auto-approve
github-actions[bot] cannot approve its own pull requests when using GITHUB_TOKEN (same identity). Remove it from the actor check so the job is skipped instead of failing on release-please PRs. A separate GitHub App is needed to auto-approve bot PRs (see #77). Signed-off-by: Sebastien Tardif <sebtardif@ncf.ca>
1 parent b258def commit 19d1ae9

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/auto-approve.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,9 @@ jobs:
1919
permissions:
2020
contents: write
2121
pull-requests: write
22-
if: >
22+
if: >-
2323
github.actor == 'SebTardif' ||
24-
github.actor == 'dependabot[bot]' ||
25-
github.actor == 'github-actions[bot]'
24+
github.actor == 'dependabot[bot]'
2625
steps:
2726
- name: Harden runner
2827
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0

0 commit comments

Comments
 (0)