From 7a830762841cd25dd050bd444e9b2a85a4fc2e6f Mon Sep 17 00:00:00 2001 From: Gabe <41127686+Zidious@users.noreply.github.com> Date: Thu, 29 Feb 2024 20:11:23 +0000 Subject: [PATCH] chore(.github/actions): add input to optionally checkout create-release-candidate-v1 (#135) --- .github/actions/create-release-candidate-v1/README.md | 1 + .github/actions/create-release-candidate-v1/action.yml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/.github/actions/create-release-candidate-v1/README.md b/.github/actions/create-release-candidate-v1/README.md index 7209a690..707d0714 100644 --- a/.github/actions/create-release-candidate-v1/README.md +++ b/.github/actions/create-release-candidate-v1/README.md @@ -12,6 +12,7 @@ A GitHub Action to create a release candidate. | `release-script-path` | Yes | The path to the [release script](#release-script-requirements) that creates the changelogs and bumps the version of the package(s) | NA | | `version-locked` | No | Whether or not the version bump should treat major/minor as "locked". Repos which version-lock to axe-core should default this to `true`, overriding it to `false` only for releases that update `axe-core`. | `false` | | `docs-repo` | No | The name of the repo where the release notes live | `null` | +| `should-checkout` | No | Whether or not the action should checkout the repository. | `true` | ## Example usage diff --git a/.github/actions/create-release-candidate-v1/action.yml b/.github/actions/create-release-candidate-v1/action.yml index dbf1f65e..1219a342 100644 --- a/.github/actions/create-release-candidate-v1/action.yml +++ b/.github/actions/create-release-candidate-v1/action.yml @@ -22,11 +22,15 @@ inputs: description: 'The name of the repo where the release notes live' default: 'null' required: false + should-checkout: + description: 'Whether or not the action should checkout the repository' + default: 'true' runs: using: 'composite' steps: - name: Checkout repository + if: ${{ inputs.should-checkout == 'true' }} uses: actions/checkout@v4 with: # Fetch all history