Skip to content

Dtoms fix release loop #6

Dtoms fix release loop

Dtoms fix release loop #6

Workflow file for this run

name: AF Tag Release
on:
pull_request:
types: [closed]
branches:
- af-main
permissions:
contents: write
jobs:
tag:
if: github.event.pull_request.merged == true && startsWith(github.event.pull_request.head.ref, 'af-release')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Read version and tag
run: |
VERSION=$(python3 -c "
import tomllib
with open('pyproject.toml', 'rb') as f:
print(tomllib.load(f)['project']['version'])
")
TAG="af-v${VERSION}"
echo "Tagging ${TAG}"
git tag "$TAG"
git push origin "$TAG"