File tree Expand file tree Collapse file tree 2 files changed +27
-21
lines changed Expand file tree Collapse file tree 2 files changed +27
-21
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
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
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
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 :
You can’t perform that action at this time.
0 commit comments