Skip to content

Commit

Permalink
Add release type input to release action
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-b committed Apr 29, 2024
1 parent 08c7bfd commit 0f66555
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@v1
Expand All @@ -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: .*

Expand Down

0 comments on commit 0f66555

Please sign in to comment.