Skip to content

Commit

Permalink
Add a repository input.
Browse files Browse the repository at this point in the history
This adds a repository input that allows a different repository than the current one to be defined for pulling the JSON support files. This can be used to customize the matrix that is built.
  • Loading branch information
desrosj committed Dec 4, 2024
1 parent 1d49212 commit 41efb33
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 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 the 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

0 comments on commit 41efb33

Please sign in to comment.