Skip to content

Commit c6c14ec

Browse files
committed
Merge branch 'master' into 4.x
2 parents ec395e7 + a2c77ac commit c6c14ec

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/happy-new-year.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
update-year-in-test:
2929
runs-on: ubuntu-latest
3030
# Don't run the cron job on forks.
31-
if: ${{ github.event_name != 'schedule' || github.repository == 'PHPCSStandards/PHP_CodeSniffer' }}
31+
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
3232

3333
name: "Happy New Year"
3434
steps:

.github/workflows/validate.yml

Lines changed: 6 additions & 6 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 == 'PHPCSStandards')
25+
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
2626

2727
steps:
2828
- name: Checkout code
@@ -48,7 +48,7 @@ jobs:
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
@@ -97,7 +97,7 @@ jobs:
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

Comments
 (0)