From 22ab68af4660af72c001883dd077ee6c1456fa94 Mon Sep 17 00:00:00 2001 From: Brendan Chamberlain Date: Mon, 25 Nov 2024 14:13:59 -0500 Subject: [PATCH] add input (#220) --- .github/workflows/bump.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump.yml b/.github/workflows/bump.yml index cbe8be5..c864196 100644 --- a/.github/workflows/bump.yml +++ b/.github/workflows/bump.yml @@ -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: @@ -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: |