diff --git a/.github/workflows/test-old-branches.yml b/.github/workflows/test-old-branches.yml index 9e37c8b5e6667..7a5b9c9f52033 100644 --- a/.github/workflows/test-old-branches.yml +++ b/.github/workflows/test-old-branches.yml @@ -16,6 +16,9 @@ on: # Any needed permissions should be configured at the job level. permissions: {} +env: + CURRENTLY_SUPPORTED_BRANCH: '6.3' + jobs: dispatch-workflows-for-old-branches: name: ${{ matrix.workflow }} for ${{ matrix.branch }} @@ -85,7 +88,7 @@ jobs: steps: - name: Dispatch workflow run uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1 - if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.3' }} + if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == env.CURRENTLY_SUPPORTED_BRANCH }} with: retries: 2 retry-exempt-status-codes: 418