Skip to content

Commit

Permalink
gihub action update
Browse files Browse the repository at this point in the history
Signed-off-by: Tullio Sebastiani <[email protected]>

action update

Signed-off-by: Tullio Sebastiani <[email protected]>
  • Loading branch information
tsebastiani committed Sep 16, 2024
1 parent 6dfe4df commit c478179
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,14 @@ jobs:
--set security.tls.autoGenerated=true
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
fetch-tags: true
- name: Update version number
if: startsWith(github.ref, 'refs/tags/')
run: |
sed -i -e "s/0.0.0/${GITHUB_REF##*/}/" pyproject.toml
# always replaces the version with the latest tag
# both for testing and version release
sed -i -e "s/0.0.0/$(git describe --tags --abbrev=0 | sed 's/^v//')/" pyproject.toml
- name: Set up Python
uses: actions/setup-python@v4
with:
Expand Down

0 comments on commit c478179

Please sign in to comment.