Skip to content

Commit

Permalink
Use normalised version number for files and tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ajjackson committed Dec 12, 2024
1 parent d27e663 commit f5145b0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/set_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,13 @@ jobs:
- name: "Update version.py"
shell: bash -l {0}
run: |
echo "__version__ = \"${{ inputs.version }}\"" > euphonic/version.py
echo "__version__ = \"${VERSION_STRING}\"" > euphonic/version.py
cat euphonic/version.py
- name: "Update CITATION.cff"
shell: bash -l {0}
run: |
sed -i "s/^version:\ .*/version: ${{ inputs.version }}/" CITATION.cff
sed -i "s/^version:\ .*/version: ${VERSION_STRING}/" CITATION.cff
sed -i "s/^date-released:\ .*/date-released: $(date -I)/" CITATION.cff
- name: "Create commit"
Expand All @@ -64,7 +64,7 @@ jobs:
- name: "Tag new commit"
shell: bash -l {0}
run: |
git tag ${{ inputs.version }}
git tag $VERSION_STRING
- name: "Show updated log"
run: |
Expand All @@ -78,4 +78,4 @@ jobs:
git show-ref --verify "refs/heads/${{ inputs.ref }}"
git push origin ${{ inputs.ref }}
git push origin tag ${{ inputs.version }}
git push origin tag $VERSION_STRING

0 comments on commit f5145b0

Please sign in to comment.