Skip to content

Commit f0396b5

Browse files
emcdclaude[bot]
andauthored
Switch GitHub workflow templates to use floating version tags (#10)
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: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: emcd <emcd@users.noreply.github.com>
1 parent 93e43cc commit f0396b5

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

template/.github/workflows/releaser.yaml.jinja

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424

2525
test:
2626
needs: [initialize]
27-
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@{{ _commit }}
27+
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@gha-1
2828
with:
2929
matrix-exclusions: {% raw %}'${{ needs.initialize.outputs.matrix-exclusions }}'{% endraw %}
3030
platforms: {% raw %}'${{ needs.initialize.outputs.platforms }}'{% endraw %}
@@ -36,7 +36,7 @@ jobs:
3636

3737
report:
3838
needs: [initialize, test]
39-
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@{{ _commit }}
39+
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@gha-1
4040
with:
4141
python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %}
4242

@@ -46,14 +46,14 @@ jobs:
4646
contents: write
4747
id-token: write
4848
pages: write
49-
uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@{{ _commit }}
49+
uses: emcd/python-project-common/.github/workflows/xrepo--documenter.yaml@gha-1
5050
with:
5151
include-reports: true
5252
python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %}
5353

5454
package:
5555
needs: [initialize, docsgen]
56-
uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@{{ _commit }}
56+
uses: emcd/python-project-common/.github/workflows/xrepo--packager.yaml@gha-1
5757
with:
5858
artifacts-path: '.auxiliary/artifacts/hatch-build' # TODO: Use environment.
5959
python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %}
@@ -106,7 +106,7 @@ jobs:
106106
_PYI_EXECUTABLE_NAME: {{ distribution_name }}-{% raw %}${{ github.ref_name }}-${{ matrix.platform-name }}{% endraw %}
107107
steps:
108108
- name: Prepare Python
109-
uses: emcd/python-project-common/.github/actions/python-hatch@{{ _commit }}
109+
uses: emcd/python-project-common/.github/actions/python-hatch@gha-1
110110
with:
111111
python-version: {% raw %}${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}{% endraw %}
112112

@@ -163,7 +163,7 @@ jobs:
163163
steps:
164164

165165
- name: Prepare Python
166-
uses: emcd/python-project-common/.github/actions/python-hatch@{{ _commit }}
166+
uses: emcd/python-project-common/.github/actions/python-hatch@gha-1
167167
with:
168168
python-version: {% raw %}${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}{% endraw %}
169169

template/.github/workflows/tester.yaml.jinja

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
test:
1616
needs: [initialize]
17-
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@{{ _commit }}
17+
uses: emcd/python-project-common/.github/workflows/xrepo--tester.yaml@gha-1
1818
with:
1919
matrix-exclusions: {% raw %}'${{ needs.initialize.outputs.matrix-exclusions }}'{% endraw %}
2020
platforms: {% raw %}'${{ needs.initialize.outputs.platforms }}'{% endraw %}
@@ -26,6 +26,6 @@ jobs:
2626

2727
report:
2828
needs: [initialize, test]
29-
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@{{ _commit }}
29+
uses: emcd/python-project-common/.github/workflows/xrepo--reporter.yaml@gha-1
3030
with:
3131
python-version: {% raw %}'${{ fromJSON(needs.initialize.outputs.python-versions)[0] }}'{% endraw %}

0 commit comments

Comments
 (0)