Skip to content

Commit

Permalink
use hatch to get the current version
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 5, 2024
1 parent 2614d44 commit c01a3b9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,15 @@ jobs:
commit_sha=$(git rev-parse HEAD)
echo "release_commit=$commit_sha" >> $GITHUB_OUTPUT
- name: "Get Current Version Number"
id: version-number-sources
run: |
current_version=`awk -F"current_version = " '{print $2}' .bumpversion.cfg | tr '\n' ' '`
echo "current_version=$current_version" >> $GITHUB_OUTPUT
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.9'

- uses: pypa/hatch@install

- id: version-number-sources
run: echo "current_version=$(hatch version)" >> $GITHUB_OUTPUT

- name: "Audit Version And Parse Into Parts"
id: semver
Expand Down

0 comments on commit c01a3b9

Please sign in to comment.