Skip to content

Commit d576e24

Browse files
committed
Build/Test Tools: Add repository input to support JSON reading workflow.
`actions/checkout` will always checkout the current repository unless the `repository` input is specified. This updates the `reusable-support-json-reader-v1.yml` workflow to always default to reading the JSON files from `wordpress-develop`. A `repository` has also been added to the workflow to allow a different set of JSON files to be read if desired. See #62221. git-svn-id: https://develop.svn.wordpress.org/trunk@59483 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 1d49212 commit d576e24

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/reusable-support-json-reader-v1.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
description: 'The WordPress version to test . Accepts major and minor versions, "latest", or "nightly". Major releases must not end with ".0".'
1212
type: string
1313
default: 'nightly'
14+
repository:
15+
description: 'The repository to read support JSON files from.'
16+
type: string
17+
default: 'WordPress/wordpress-develop'
1418
outputs:
1519
major-wp-version:
1620
description: "The major WordPress version based on the version provided in wp-version"
@@ -42,6 +46,7 @@ jobs:
4246
- name: Checkout repository
4347
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4448
with:
49+
repository: ${{ inputs.repository }}
4550
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
4651

4752
- name: Determine the major WordPress version
@@ -74,6 +79,7 @@ jobs:
7479
- name: Checkout repository
7580
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7681
with:
82+
repository: ${{ inputs.repository }}
7783
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
7884

7985
# Look up the major version's specific PHP support policy when a version is provided.
@@ -106,6 +112,7 @@ jobs:
106112
- name: Checkout repository
107113
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
108114
with:
115+
repository: ${{ inputs.repository }}
109116
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}
110117

111118
# Look up the major version's specific MySQL support policy when a version is provided.

0 commit comments

Comments
 (0)