Skip to content

Commit 5d24d1b

Browse files
authored
Merge pull request #262 from Yoast/feature/ghactions-improve-dont-run-cronjobs-on-forks-condition
GH Actions: improve "don't run on forks" condition
2 parents 002a850 + 8460324 commit 5d24d1b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/markdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
# Don't run the cronjob in this workflow on forks.
25-
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Yoast')
25+
if: github.event_name != 'schedule' || github.event.repository.fork == false
2626

2727
steps:
2828
- name: Checkout code
@@ -41,7 +41,7 @@ jobs:
4141
runs-on: ubuntu-latest
4242

4343
# Don't run the cronjob in this workflow on forks.
44-
if: github.event_name != 'schedule' || (github.event_name == 'schedule' && github.repository_owner == 'Yoast')
44+
if: github.event_name != 'schedule' || github.event.repository.fork == false
4545

4646
steps:
4747
- name: Checkout code

0 commit comments

Comments
 (0)