version: 0.4.0 (#41) #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |