Skip to content

Commit

Permalink
Build/Test Tools: Add repository input to support JSON reading work…
Browse files Browse the repository at this point in the history
…flow.

`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
  • Loading branch information
desrosj committed Dec 4, 2024
1 parent 1d49212 commit d576e24
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/reusable-support-json-reader-v1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ on:
description: 'The WordPress version to test . Accepts major and minor versions, "latest", or "nightly". Major releases must not end with ".0".'
type: string
default: 'nightly'
repository:
description: 'The repository to read support JSON files from.'
type: string
default: 'WordPress/wordpress-develop'
outputs:
major-wp-version:
description: "The major WordPress version based on the version provided in wp-version"
Expand Down Expand Up @@ -42,6 +46,7 @@ jobs:
- name: Checkout repository
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: ${{ inputs.repository }}
show-progress: ${{ runner.debug == '1' && 'true' || 'false' }}

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

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

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

0 comments on commit d576e24

Please sign in to comment.