Skip to content

Commit f7940fe

Browse files
authored
Template check: switch to uvx and upgrade debug messages (#24)
* Show environment variables for easier debugging * Use uv in the workflow * Alter template check to be `act` compatible
1 parent 282898e commit f7940fe

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/template-check-version.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,36 @@ jobs:
1616
contents: read
1717
issues: write
1818
env:
19-
UPDATE: "false"
19+
UPDATE: false
2020
steps:
2121
- uses: actions/checkout@v4
2222

23-
- uses: mamba-org/setup-micromamba@v2
24-
with:
25-
environment-name: ${{ github.event.repository.name }}-copier
26-
create-args: copier python=3.12
27-
post-cleanup: all
28-
cache-environment: true
23+
- name: Install uv
24+
uses: astral-sh/setup-uv@v5
2925

3026
- name: Add dummy GitHub credentials
3127
run: |
3228
git config --global user.name Copier update
3329
git config --global user.email [email protected]
3430
3531
- name: Run copier update
36-
run: copier update --skip-answered --defaults
32+
run: uvx copier update --skip-answered --defaults
3733

38-
- name: Check for template changes
34+
- name: Wait a bit for copier cleanups
35+
run: sleep 10s
36+
37+
- name: Display differences
38+
run: git status --porcelain
39+
40+
- name: Set update flag if changes occurred
3941
run: test -z "$(git status --porcelain)" || echo "UPDATE=true" >> $GITHUB_ENV
4042

43+
- name: Show environment variables
44+
run: |
45+
echo "$UPDATE"
46+
4147
- name: Open issue
42-
if: env.UPDATE == 'true'
48+
if: env.UPDATE == true
4349
run: |
4450
gh issue --repo ${{ github.repository }} \
4551
create --title "Template update" \

0 commit comments

Comments
 (0)