From 4f4633c6b38cbd0149e048e1020500d60ab88121 Mon Sep 17 00:00:00 2001 From: Alex Clarke Date: Mon, 25 Nov 2024 19:06:00 -0700 Subject: [PATCH] ci: Creating an enumerated selection of release jobs [skip ci] --- .github/workflows/release.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 56a8818..a694e6f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,15 +19,19 @@ on: - patch - minor - major - target_job: - description: "Which job to start with" + start_from: + description: "Specify the job to start from" required: false default: "bump" + type: choice + options: + - bump + - release-plz jobs: bump: runs-on: ubuntu-latest - if: ${{ github.event.inputs.target_job == 'bump' }} + if: ${{ github.event.inputs.start_from == 'bump' || github.event.inputs.start_from == '' }} steps: - name: Configure SSH for Git run: | @@ -110,7 +114,7 @@ jobs: # for more information needs: bump name: Release-plz - if: ${{ github.event.inputs.target_job == 'release-plz' }} + if: ${{ github.event.inputs.start_from == 'release-plz' || github.event.inputs.start_from == '' }} runs-on: ubuntu-latest steps: - name: Check if actor is repository owner