Skip to content

Fix container test cleanup and deps configuration #54

Fix container test cleanup and deps configuration

Fix container test cleanup and deps configuration #54

Workflow file for this run

name: Release
on:
pull_request:
types: [closed]
branches: [main]
jobs:
tag:
# Only run if:
# 1. PR was merged (not just closed)
# 2. Source branch starts with 'release/'
# 3. PR is from this repo (not a fork)
if: |
github.event.pull_request.merged == true &&
startsWith(github.event.pull_request.head.ref, 'release/') &&
github.event.pull_request.head.repo.full_name == github.repository
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6
- name: Get version from pyproject.toml
id: version
run: |
VERSION=$(grep '^version = ' pyproject.toml | cut -d'"' -f2)
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "Detected version: $VERSION"
- name: Create and push tag
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git tag "v${{ steps.version.outputs.version }}"
git push origin "v${{ steps.version.outputs.version }}"
echo "Created tag: v${{ steps.version.outputs.version }}"