Files
wizarr/.github/workflows/calver-automation.yml
dependabot[bot] 670490feb8 Bump actions/setup-python from 6 to 7
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 6 to 7.
- [Release notes](https://github.com/actions/setup-python/releases)
- [Commits](https://github.com/actions/setup-python/compare/v6...v7)

---
updated-dependencies:
- dependency-name: actions/setup-python
  dependency-version: '7'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-20 09:08:01 +00:00

65 lines
2.1 KiB
YAML

name: CalVer Automation
on:
push:
branches:
- main
- 'release/**' # Trigger on release branch pushes to update PR description
workflow_dispatch:
inputs:
dry-run:
description: 'Run in dry-run mode (no PR creation)'
type: boolean
default: false
env:
PYTHON_VERSION: '3.12'
jobs:
release-please:
runs-on: ubuntu-24.04
if: github.repository_owner == 'wizarrrr'
permissions:
contents: write
pull-requests: write
outputs:
release-created: ${{ steps.release.outputs.release-created }}
tag-name: ${{ steps.release.outputs.tag-name }}
pr-number: ${{ steps.release.outputs.pr-number }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
fetch-depth: 0 # Need full history for changelog
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version-file: pyproject.toml
- name: Generate CalVer Release
id: release
uses: ./.github/actions/calver-automation
with:
token: ${{ secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN }}
dry-run: ${{ inputs.dry-run || 'false' }}
- name: Summary
if: steps.release.outputs.release-created == 'true'
run: |
echo "🚀 **Release PR Created!**" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Version**: ${{ steps.release.outputs.tag-name }}" >> $GITHUB_STEP_SUMMARY
echo "- **Release PR**: #${{ steps.release.outputs.pr-number }}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "## Workflow" >> $GITHUB_STEP_SUMMARY
echo "1. **Review and merge Release PR** when ready" >> $GITHUB_STEP_SUMMARY
echo "2. **GitHub Release** created automatically" >> $GITHUB_STEP_SUMMARY
echo "3. **Docker images** built and pushed with :latest and version tags" >> $GITHUB_STEP_SUMMARY