diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f75dfac..8d4662e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,9 +2,20 @@ name: Release on: workflow_dispatch: + inputs: + requested_release_type: + description: 'Release type (may be overridden by commit messages, see mathieudutour/github-tag-action)' + required: true + default: 'patch' + type: choice + options: + - patch + - minor + - major jobs: build: + if: github.ref_name == github.event.repository.default_branch runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -13,6 +24,7 @@ jobs: id: tag_version uses: mathieudutour/github-tag-action@fcfbdceb3093f6d85a3b194740f8c6cec632f4e2 with: + default_bump: ${{ github.event.inputs.requested_release_type }} github_token: ${{ secrets.GITHUB_TOKEN }} release_branches: .*