From 2683aff74ce61abe799ede2267f4566668db44c1 Mon Sep 17 00:00:00 2001 From: "claude[bot]" <209825114+claude[bot]@users.noreply.github.com> Date: Thu, 29 May 2025 21:34:34 +0000 Subject: [PATCH] Switch GitHub workflow templates to use floating version tags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replace `{{ _commit }}` with `gha-1` floating tag in cross-repo workflow references. This allows workflows to be updated independently of `copier update` runs. The `gha-1` tag will point to the latest workflows release in the gha-1.x series. Updated files: - template/.github/workflows/tester.yaml.jinja (2 references) - template/.github/workflows/releaser.yaml.jinja (6 references) Fixes: #9 🤖 Generated with [Claude Code](https://claude.ai/code) Co-authored-by: emcd --- template/.github/workflows/releaser.yaml.jinja | 12 ++++++------ template/.github/workflows/tester.yaml.jinja | 4 ++-- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/template/.github/workflows/releaser.yaml.jinja b/template/.github/workflows/releaser.yaml.jinja index 03c113d..5a5e009 100644 --- a/template/.github/workflows/releaser.yaml.jinja +++ b/template/.github/workflows/releaser.yaml.jinja @@ -24,7 +24,7 @@ jobs: test: needs: [initialize] - uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@gha-1 with: matrix-exclusions: {% raw %}'${{ needs.initialize.outputs.matrix-exclusions }}'{% endraw %} platforms: {% raw %}'${{ needs.initialize.outputs.platforms }}'{% endraw %} @@ -36,7 +36,7 @@ jobs: report: needs: [initialize, test] - uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@gha-1 with: python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %} @@ -46,14 +46,14 @@ jobs: contents: write id-token: write pages: write - uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@gha-1 with: include-reports: true python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %} package: needs: [initialize, docsgen] - uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@gha-1 with: artifacts-path: '.auxiliary/artifacts/hatch-build' # TODO: Use environment. python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %} @@ -106,7 +106,7 @@ jobs: _PYI_EXECUTABLE_NAME: {{ distribution_name }}-{% raw %}${{ github.ref_name }}-${{ matrix.platform-name }}{% endraw %} steps: - name: Prepare Python - uses: emcd/python-project-common/.github/actions/python-hatch@{{ _commit }} + uses: emcd/python-project-common/.github/actions/python-hatch@gha-1 with: python-version: {% raw %}${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}{% endraw %} @@ -163,7 +163,7 @@ jobs: steps: - name: Prepare Python - uses: emcd/python-project-common/.github/actions/python-hatch@{{ _commit }} + uses: emcd/python-project-common/.github/actions/python-hatch@gha-1 with: python-version: {% raw %}${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}{% endraw %} diff --git a/template/.github/workflows/tester.yaml.jinja b/template/.github/workflows/tester.yaml.jinja index ea2ad47..3eb90fb 100644 --- a/template/.github/workflows/tester.yaml.jinja +++ b/template/.github/workflows/tester.yaml.jinja @@ -14,7 +14,7 @@ jobs: test: needs: [initialize] - uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@gha-1 with: matrix-exclusions: {% raw %}'${{ needs.initialize.outputs.matrix-exclusions }}'{% endraw %} platforms: {% raw %}'${{ needs.initialize.outputs.platforms }}'{% endraw %} @@ -26,6 +26,6 @@ jobs: report: needs: [initialize, test] - uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@{{ _commit }} + uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@gha-1 with: python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %}