Skip to content

Commit af2d9ec

Browse files
committed
Merge branch '3.x' into 4.x
2 parents 4067971 + 3821381 commit af2d9ec

File tree

2 files changed

+27
-21
lines changed

2 files changed

+27
-21
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Validate Cronjob
2+
3+
on:
4+
# Run this workflow every Monday at 6:00 (to make sure the broken link check runs regularly).
5+
schedule:
6+
- cron: '0 6 * * 1'
7+
8+
# Cancels all previous workflow runs for the same branch that have not yet completed.
9+
concurrency:
10+
# The concurrency group contains the workflow name and the branch name.
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
markdownlint:
16+
name: 'Lint Markdown'
17+
# Don't run the cronjob in this workflow on forks.
18+
if: ${{ github.event.repository.fork == false }}
19+
20+
uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
21+
22+
remark:
23+
name: 'QA Markdown'
24+
# Don't run the cronjob in this workflow on forks.
25+
if: ${{ github.event.repository.fork == false }}
26+
27+
uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main

.github/workflows/validate.yml

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ on:
44
# Run on all pushes and on all pull requests.
55
push:
66
pull_request:
7-
# Also run this workflow every Monday at 6:00 (to make sure the broken link check runs regularly).
8-
schedule:
9-
- cron: '0 6 * * 1'
107
# Allow manually triggering the workflow.
118
workflow_dispatch:
129

@@ -21,9 +18,6 @@ jobs:
2118
name: Check PHP code style
2219
runs-on: ubuntu-latest
2320

24-
# Don't run the cronjob in this workflow on forks.
25-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
26-
2721
steps:
2822
- name: Checkout code
2923
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -47,9 +41,6 @@ jobs:
4741
name: Check XML files
4842
runs-on: ubuntu-latest
4943

50-
# Don't run the cronjob in this workflow on forks.
51-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
52-
5344
steps:
5445
- name: Checkout code
5546
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -96,9 +87,6 @@ jobs:
9687
name: 'XML Code style'
9788
runs-on: ubuntu-latest
9889

99-
# Don't run the cronjob in this workflow on forks.
100-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
101-
10290
env:
10391
XMLLINT_INDENT: ' '
10492

@@ -134,25 +122,16 @@ jobs:
134122
135123
yamllint:
136124
name: 'Lint Yaml'
137-
# Don't run the cronjob in this workflow on forks.
138-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
139-
140125
uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
141126
with:
142127
strict: true
143128

144129
markdownlint:
145130
name: 'Lint Markdown'
146-
# Don't run the cronjob in this workflow on forks.
147-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
148-
149131
uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
150132

151133
remark:
152134
name: 'QA Markdown'
153-
# Don't run the cronjob in this workflow on forks.
154-
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
155-
156135
uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
157136

158137
shellcheck:

0 commit comments

Comments
 (0)