Skip to content

Commit

Permalink
Fix version parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
infamousjoeg authored Jun 16, 2024
1 parent 0f4a82f commit 8c1f41f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
- name: Extract version
id: get_version
run: |
VERSION=$(grep -oP '(?<=^__version__ = ")([^"]+)' pyaim/version.py)
VERSION=$(grep '^__version__ = ' pyaim/version.py | cut -d '"' -f 2 | cut -d "'" -f 2)
echo "VERSION=$VERSION" >> $GITHUB_ENV
echo "::set-output name=VERSION::$VERSION"
Expand All @@ -52,7 +52,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: v${{ env.VERSION }}
release_name: Release ${{ env.VERSION }}
release_name: v${{ env.VERSION }}
draft: false
prerelease: false

Expand All @@ -68,7 +68,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
python-version: '3.12'

- name: Install dependencies
run: |
Expand Down
2 changes: 1 addition & 1 deletion pyaim/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
This module contains the version information about the project that
is intended to be reused in multiple places.
Changing triggers automatic release of a new version.
Changing triggers automatic release of a new version.
"""

__version__ = '1.5.2'

0 comments on commit 8c1f41f

Please sign in to comment.