Make WordPress Core

Ticket #52653: 52653.diff

File 52653.diff, 1.0 KB (added by desrosj, 4 years ago)
  • .github/workflows/test-old-branches.yml

     
    11name: Test old branches
    22
    33on:
    4   # Once weekly On Mondays at 00:00 UTC.
     4  # Run twice a month on the 1st and 15th at 00:00 UTC.
    55  schedule:
    6     - cron: '0 0 1,15 * *'
     6    - cron: '0 0 1 * *'
     7    - cron: '0 0 15 * *'
    78
    89jobs:
    910  dispatch-workflows-for-old-branches:
     
    4546          - branch: '3.7'
    4647            workflow: 'javascript-tests.yml'
    4748
     49    # Run all branches monthly, but only the 2 most recent twice per month.
    4850    steps:
    4951      - name: Dispatch workflow run
    5052        uses: actions/github-script@47f7cf65b5ced0830a325f705cad64f2f58dddf7 # v3.1.0
     53        if: ${{ github.event.schedule == '0 0 15 * *' || matrix.branch == '5.7' || matrix.branch == '5.6' }}
    5154        with:
    5255          github-token: ${{ secrets.GHA_OLD_BRANCH_DISPATCH }}
    5356          script: |