diff --git a/.github/workflows/copier-update.yaml b/.github/workflows/copier-update.yaml index 4320a88..9609781 100644 --- a/.github/workflows/copier-update.yaml +++ b/.github/workflows/copier-update.yaml @@ -31,7 +31,7 @@ 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 @@ -39,7 +39,8 @@ jobs: 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' diff --git a/template/{% if hosting_platform == 'github' %}.github{% endif %}/workflows/copier-update.yaml b/template/{% if hosting_platform == 'github' %}.github{% endif %}/workflows/copier-update.yaml index 4320a88..9609781 100644 --- a/template/{% if hosting_platform == 'github' %}.github{% endif %}/workflows/copier-update.yaml +++ b/template/{% if hosting_platform == 'github' %}.github{% endif %}/workflows/copier-update.yaml @@ -31,7 +31,7 @@ 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 @@ -39,7 +39,8 @@ jobs: 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'