Skip to content

Commit

Permalink
Add release type input to release action (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b authored Apr 29, 2024
2 parents 55706e6 + 536674c commit a91c971
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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: .*

Expand Down

0 comments on commit a91c971

Please sign in to comment.