Skip to content

Commit e3b7fa1

Browse files
authored
Check for triggering_actor instead of actor to prevent unnecessary runs when derived files are created (#2405)
1 parent 66f53a5 commit e3b7fa1

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/obo-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ on:
1111
jobs:
1212
test:
1313
runs-on: ubuntu-latest
14-
if: github.actor != 'github-actions[bot]'
14+
if: github.triggering_actor != 'github-actions[bot]'
1515
steps:
1616
- uses: actions/checkout@v2
1717
- uses: actions/setup-python@v2

.github/workflows/qa.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
lint:
77
name: Lint
88
runs-on: ubuntu-latest
9-
if: github.actor != 'github-actions[bot]'
9+
if: github.triggering_actor != 'github-actions[bot]'
1010
strategy:
1111
matrix:
1212
python-version: [ "3.7", "3.10" ]

0 commit comments

Comments
 (0)