Skip to content

Commit ea875da

Browse files
fix: check PR author instead of actor in align workflow
github.actor is who triggered the event (pushed), not the PR author. Use github.event.pull_request.user.login to check the PR author.
1 parent e2cdc23 commit ea875da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/align_pyproject_version.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions:
1313

1414
jobs:
1515
align-version:
16-
if: github.actor == 'github-actions[bot]'
16+
if: github.event.pull_request.user.login == 'github-actions[bot]'
1717
runs-on: ubuntu-latest
1818
steps:
1919
- name: Checkout PR branch

0 commit comments

Comments
 (0)