ci: Creating an enumerated selection of release jobs [skip ci]

This commit is contained in:
2024-11-25 19:06:00 -07:00
parent 17c70dfef2
commit 4f4633c6b3
+8 -4
View File
@@ -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