Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions .github/workflows/validate-cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Validate Cronjob

on:
# Run this workflow every Monday at 6:00 (to make sure the broken link check runs regularly).
schedule:
- cron: '0 6 * * 1'

# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
markdownlint:
name: 'Lint Markdown'
# Don't run the cronjob in this workflow on forks.
if: ${{ github.event.repository.fork == false }}

uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main

remark:
name: 'QA Markdown'
# Don't run the cronjob in this workflow on forks.
if: ${{ github.event.repository.fork == false }}

uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main
21 changes: 0 additions & 21 deletions .github/workflows/validate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
# Run on all pushes and on all pull requests.
push:
pull_request:
# Also run this workflow every Monday at 6:00 (to make sure the broken link check runs regularly).
schedule:
- cron: '0 6 * * 1'
# Allow manually triggering the workflow.
workflow_dispatch:

Expand All @@ -21,9 +18,6 @@ jobs:
name: Check PHP code style
runs-on: ubuntu-latest

# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand All @@ -47,9 +41,6 @@ jobs:
name: Check XML files
runs-on: ubuntu-latest

# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
Expand Down Expand Up @@ -91,9 +82,6 @@ jobs:
name: 'XML Code style'
runs-on: ubuntu-latest

# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

env:
XMLLINT_INDENT: ' '

Expand Down Expand Up @@ -130,25 +118,16 @@ jobs:

yamllint:
name: 'Lint Yaml'
# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

uses: PHPCSStandards/.github/.github/workflows/reusable-yamllint.yml@main
with:
strict: true

markdownlint:
name: 'Lint Markdown'
# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

uses: PHPCSStandards/.github/.github/workflows/reusable-markdownlint.yml@main

remark:
name: 'QA Markdown'
# Don't run the cronjob in this workflow on forks.
if: ${{ github.event_name != 'schedule' || github.event.repository.fork == false }}

uses: PHPCSStandards/.github/.github/workflows/reusable-remark.yml@main

shellcheck:
Expand Down