Skip to content

version: 0.4.0 (#41) #5

version: 0.4.0 (#41)

version: 0.4.0 (#41) #5

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 "release-bot@users.noreply.github.com"
git tag "$TAG"
git push origin $TAG