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 - patch
- minor - minor
- major - major
target_job: start_from:
description: "Which job to start with" description: "Specify the job to start from"
required: false required: false
default: "bump" default: "bump"
type: choice
options:
- bump
- release-plz
jobs: jobs:
bump: bump:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.event.inputs.target_job == 'bump' }} if: ${{ github.event.inputs.start_from == 'bump' || github.event.inputs.start_from == '' }}
steps: steps:
- name: Configure SSH for Git - name: Configure SSH for Git
run: | run: |
@@ -110,7 +114,7 @@ jobs:
# for more information # for more information
needs: bump needs: bump
name: Release-plz 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 runs-on: ubuntu-latest
steps: steps:
- name: Check if actor is repository owner - name: Check if actor is repository owner