22
22
runs-on : ubuntu-latest
23
23
24
24
# 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 }}
26
26
27
27
steps :
28
28
- name : Checkout code
48
48
runs-on : ubuntu-latest
49
49
50
50
# 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 }}
52
52
53
53
steps :
54
54
- name : Checkout code
92
92
runs-on : ubuntu-latest
93
93
94
94
# Don't run the cronjob in this workflow on forks.
95
- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
95
+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
96
96
97
97
env :
98
98
XMLLINT_INDENT : ' '
@@ -131,7 +131,7 @@ jobs:
131
131
yamllint :
132
132
name : ' Lint Yaml'
133
133
# Don't run the cronjob in this workflow on forks.
134
- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
134
+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
135
135
136
136
uses : PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
137
137
with :
@@ -140,13 +140,13 @@ jobs:
140
140
markdownlint :
141
141
name : ' Lint Markdown'
142
142
# Don't run the cronjob in this workflow on forks.
143
- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
143
+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
144
144
145
145
uses : PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
146
146
147
147
remark :
148
148
name : ' QA Markdown'
149
149
# Don't run the cronjob in this workflow on forks.
150
- if : github.event_name != 'schedule' || ( github.event_name == 'schedule' && github.repository_owner == 'PHPCSStandards')
150
+ if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
151
151
152
152
uses : PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
0 commit comments