ci: Creating an enumerated selection of release jobs [skip ci]
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user