diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 329eb4b..2b1fbe7 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@v1 @@ -13,6 +24,7 @@ jobs: id: tag_version uses: mathieudutour/github-tag-action@d745f2e74aaf1ee82e747b181f7a0967978abee0 with: + default_bump: ${{ github.event.inputs.requested_release_type }} github_token: ${{ secrets.GITHUB_TOKEN }} release_branches: .*