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