Skip to content

My previous CalVers scheme was not PEP440 compliant #4

My previous CalVers scheme was not PEP440 compliant

My previous CalVers scheme was not PEP440 compliant #4

Workflow file for this run

name: Automated CalVer Tagging
on:
push:
branches:
- main
permissions:
contents: read
jobs:
tag:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Create Tag
id: create_tag
env:
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
VERSION=v$(date +'%Y.%m').$(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"
git push origin "$VERSION" --tags