Skip to content

version: 0.3.1 (#37) #4

version: 0.3.1 (#37)

version: 0.3.1 (#37) #4

name: Create release tag
on:
push:
branches:
- main
paths:
- CHANGELOG.md
jobs:
create-release-tag:
runs-on: ubuntu-latest
if: "startsWith(github.event.head_commit.message, 'version:')"
steps:
- uses: actions/checkout@v4
- name: Create tag
run: |
TAG=$(hatch version)
git config user.name "release-bot"
git config user.email "[email protected]"
git tag "$TAG"
git push origin $TAG