chore: options to run release-install-script without release (#4377)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2025-11-17 17:12:04 -05:00 committed by GitHub
parent a033ae525f
commit 7014cb023f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 }}