Skip to content

Commit

Permalink
Experiment with the tag/version format
Browse files Browse the repository at this point in the history
  • Loading branch information
tombreit committed Dec 30, 2024
1 parent c9cb3cc commit 94d40ed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Deploy Python Package to PyPI
on:
push:
tags:
- v*
- "v*"
workflow_run:
workflows: ["Automated CalVer Tagging"]
types: [completed]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tagging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
VERSION=$(date +'%Y.%m').$(git rev-parse --short HEAD)
VERSION=v$(date +'%Y.%-m.%-d')+$(git rev-parse --short HEAD)
# Store the tag name in an environment variable for later use/steps
echo "TAG_NAME=$VERSION" >> $GITHUB_ENV
git tag -a "$VERSION" -m "Release $VERSION"
Expand Down

0 comments on commit 94d40ed

Please sign in to comment.