From 94d40edf60f5a49c7467a5393157dce48fafd2ba Mon Sep 17 00:00:00 2001 From: Thomas Breitner Date: Mon, 30 Dec 2024 19:16:35 +0100 Subject: [PATCH] Experiment with the tag/version format --- .github/workflows/pypi.yml | 2 +- .github/workflows/tagging.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index 6161496..476c05e 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -6,7 +6,7 @@ name: Deploy Python Package to PyPI on: push: tags: - - v* + - "v*" workflow_run: workflows: ["Automated CalVer Tagging"] types: [completed] diff --git a/.github/workflows/tagging.yml b/.github/workflows/tagging.yml index 3e509c7..ee46053 100644 --- a/.github/workflows/tagging.yml +++ b/.github/workflows/tagging.yml @@ -21,7 +21,7 @@ jobs: run: | git config --local user.email "action@github.com" 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"