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 == 'PHPCSStandards')
25+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
2626
2727 steps :
2828 - name : Checkout code
4848 runs-on : ubuntu-latest
4949
5050 # Don't run the cronjob in this workflow on forks.
51- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
51+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
5252
5353 steps :
5454 - name : Checkout code
9797 runs-on : ubuntu-latest
9898
9999 # Don't run the cronjob in this workflow on forks.
100- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
100+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
101101
102102 env :
103103 XMLLINT_INDENT : ' '
@@ -135,7 +135,7 @@ jobs:
135135 yamllint :
136136 name : ' Lint Yaml'
137137 # Don't run the cronjob in this workflow on forks.
138- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
138+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
139139
140140 uses : PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
141141 with :
@@ -144,13 +144,13 @@ jobs:
144144 markdownlint :
145145 name : ' Lint Markdown'
146146 # Don't run the cronjob in this workflow on forks.
147- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
147+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
148148
149149 uses : PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
150150
151151 remark :
152152 name : ' QA Markdown'
153153 # Don't run the cronjob in this workflow on forks.
154- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
154+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
155155
156156 uses : PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
0 commit comments