Skip to content

Commit fe59ac3

Browse files
committed
Build/Test Tools: Add environment variable for current release.
This adds a global environment variable to the Test old branches workflow to make the supported version more clear and easier to update in the future. This will also make it easier to reference in more places as this workflow grows. See #58867. git-svn-id: https://develop.svn.wordpress.org/trunk@56955 602fd350-edb4-49c9-b593-d223f7449a82
1 parent f95ddbc commit fe59ac3

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/test-old-branches.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616
# Any needed permissions should be configured at the job level.
1717
permissions: {}
1818

19+
env:
20+
CURRENTLY_SUPPORTED_BRANCH: '6.3'
21+
1922
jobs:
2023
dispatch-workflows-for-old-branches:
2124
name: ${{ matrix.workflow }} for ${{ matrix.branch }}
@@ -85,7 +88,7 @@ jobs:
8588
steps:
8689
- name: Dispatch workflow run
8790
uses: actions/github-script@d7906e4ad0b1822421a7e6a35d5ca353c962f410 # v6.4.1
88-
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == '6.3' }}
91+
if: ${{ github.event_name == 'push' || github.event.schedule == '0 0 15 * *' || matrix.branch == env.CURRENTLY_SUPPORTED_BRANCH }}
8992
with:
9093
retries: 2
9194
retry-exempt-status-codes: 418

0 commit comments

Comments
 (0)