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
9182 name : ' XML Code style'
9283 runs-on : ubuntu-latest
9384
94- # Don't run the cronjob in this workflow on forks.
95- if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
96-
9785 env :
9886 XMLLINT_INDENT : ' '
9987
@@ -130,25 +118,16 @@ jobs:
130118
131119 yamllint :
132120 name : ' Lint Yaml'
133- # Don't run the cronjob in this workflow on forks.
134- if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
135-
136121 uses : PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
137122 with :
138123 strict : true
139124
140125 markdownlint :
141126 name : ' Lint Markdown'
142- # Don't run the cronjob in this workflow on forks.
143- if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
144-
145127 uses : PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main
146128
147129 remark :
148130 name : ' QA Markdown'
149- # Don't run the cronjob in this workflow on forks.
150- if : ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}
151-
152131 uses : PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
153132
154133 shellcheck :
You can’t perform that action at this time.
0 commit comments