Skip to content

Commit

Permalink
👷 Add choice input for changelog action
Browse files Browse the repository at this point in the history
  • Loading branch information
sansarip committed May 25, 2023
1 parent 324d953 commit aea7183
Showing 1 changed file with 6 additions and 13 deletions.
19 changes: 6 additions & 13 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,18 @@ on:
default: ''
required: true
type: string
skip-changelog:
description: 'Skip updating the change log'
default: false
required: true
type: boolean
changelog-confirmation:
description: 'Confirm that you have updated the change log variable'
default: false
required: true
type: boolean
prerelease:
description: 'Publish as prerelease'
default: false
required: true
type: boolean
changelog-action:
description: 'The action to take on the change log'
options: ['update', 'skip']
required: true
type: choice

jobs:
release:
if: inputs.changelog-confirmation == true || inputs.skip-changelog == true
name: "Build, release, and publish"
runs-on: "ubuntu-latest"
steps:
Expand Down Expand Up @@ -54,7 +47,7 @@ jobs:
fi
- name: Update change log
if: inputs.skip-changelog == false
if: inputs.changelog-action == 'update'
run: |
echo -e "\n" >> CHANGELOG.md &&
echo -e '${{ vars.CHANGELOG }}' >> CHANGELOG.md
Expand Down

0 comments on commit aea7183

Please sign in to comment.