From 7014cb023f976bb4deced0e78253d7a009ab4d72 Mon Sep 17 00:00:00 2001 From: Keith Zantow Date: Mon, 17 Nov 2025 17:12:04 -0500 Subject: [PATCH] chore: options to run release-install-script without release (#4377) Signed-off-by: Keith Zantow --- .github/workflows/release.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index a74f10376..92c4ead7b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,11 +9,20 @@ on: version: description: tag the latest commit on main with the given version (prefixed with v) required: true + phase: + description: the specific workflow phase to run or all + required: true + default: "all" + type: choice + options: + - "all" + - "install-script-only" jobs: quality-gate: environment: release runs-on: ubuntu-24.04 + if: ${{ github.event.inputs.phase == 'all' }} steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5.0.0 with: @@ -120,6 +129,7 @@ jobs: release: needs: [quality-gate] runs-on: ubuntu-24.04 + if: ${{ github.event.inputs.phase == 'all' }} permissions: contents: write packages: write @@ -189,7 +199,7 @@ jobs: release-install-script: needs: [release] - if: ${{ needs.release.result == 'success' }} + if: ${{ always() && (needs.release.result == 'success' || github.event.inputs.phase == 'install-script-only') }} uses: "anchore/workflows/.github/workflows/release-install-script.yaml@main" with: tag: ${{ github.event.inputs.version }}