-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from AstarVienna/fh/releaseworkflow
Cleanup release workflow, add experimental version bump workflow
- Loading branch information
Showing
2 changed files
with
60 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Bump package version | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
rule: | ||
type: choice | ||
description: Version bump level | ||
options: | ||
- major | ||
- minor | ||
- patch | ||
- premajor | ||
- preminor | ||
- prepatch | ||
- prerelease | ||
- "prerelease --next-phase" | ||
|
||
jobs: | ||
bump: | ||
name: Bump version number | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.11" | ||
|
||
- name: Set up Poetry | ||
uses: abatilo/actions-poetry@v2 | ||
with: | ||
poetry-version: "1.7.0" | ||
|
||
- name: Store current Version | ||
id: current-version | ||
run: | | ||
echo "CURRENT_VERSION=$(poetry version --short)" >> $GITHUB_OUTPUT | ||
- name: Bump package Version using Poetry | ||
run: echo steps.current-version.outputs.CURRENT_VERSION | ||
# run: poetry version ${{ github.event.inputs.rule }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters