Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/copier-update.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
- name: Check for template updates
id: check
run: |
if ! nix run "$COPIER_FLAKE" -- check-update --quiet .; then
if ! nix run --no-write-lock-file "$COPIER_FLAKE" -- check-update --quiet .; then
echo "update_available=true" >> "$GITHUB_OUTPUT"
fi

- name: Run copier update
if: steps.check.outputs.update_available == 'true'
# Intentionally omits --trust so copier skips post-copy tasks (git add, hooks-install, cog commit).
run: |
nix run "$COPIER_FLAKE" -- update --defaults --skip-answered --conflict=inline --context-lines 1 .
nix run --no-write-lock-file "$COPIER_FLAKE" -- \
update --defaults --skip-answered --conflict=inline --context-lines 1 .

- name: Check for conflict markers
if: steps.check.outputs.update_available == 'true'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,16 @@ jobs:
- name: Check for template updates
id: check
run: |
if ! nix run "$COPIER_FLAKE" -- check-update --quiet .; then
if ! nix run --no-write-lock-file "$COPIER_FLAKE" -- check-update --quiet .; then
echo "update_available=true" >> "$GITHUB_OUTPUT"
fi

- name: Run copier update
if: steps.check.outputs.update_available == 'true'
# Intentionally omits --trust so copier skips post-copy tasks (git add, hooks-install, cog commit).
run: |
nix run "$COPIER_FLAKE" -- update --defaults --skip-answered --conflict=inline --context-lines 1 .
nix run --no-write-lock-file "$COPIER_FLAKE" -- \
update --defaults --skip-answered --conflict=inline --context-lines 1 .

- name: Check for conflict markers
if: steps.check.outputs.update_available == 'true'
Expand Down
Loading