Skip to content

Commit

Permalink
add input (#220)
Browse files Browse the repository at this point in the history
  • Loading branch information
infosecB authored Nov 25, 2024
1 parent 9d00c21 commit 22ab68a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/bump.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
name: Bump version
on:
workflow_dispatch:
inputs:
type:
description: 'Bump type'
required: true
default: 'patch'
type: choice
options:
- patch
- minor
- major

jobs:
poetry_bump:
Expand All @@ -23,7 +33,7 @@ jobs:
run: echo "$HOME/.local/bin" >> $GITHUB_PATH

- name: Run Poetry bump (patch)
run: poetry version patch
run: poetry version ${{ inputs.type }}

- name: Add and commit changes
run: |
Expand Down

0 comments on commit 22ab68a

Please sign in to comment.