File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7878 run : |
7979 rm -rf ~/.cookiecutters/*
8080 mkdir -p template-base
81- # jq '.cookiecutter.templates = "main"' .cookiecutter.json > tmp && mv tmp .cookiecutter.json # <-- uncomment if keeping the variable
8281 cookiecutter base-template \
8382 --replay-file .cookiecutter.json \
8483 --overwrite-if-exists \
8988 run : |
9089 rm -rf ~/.cookiecutters/*
9190 mkdir -p template-new
92- # jq '.cookiecutter.templates = "main"' .cookiecutter.json > tmp && mv tmp .cookiecutter.json # <-- same note
9391 cookiecutter template-source \
9492 --replay-file .cookiecutter.json \
9593 --overwrite-if-exists \
@@ -104,10 +102,11 @@ jobs:
104102 if [ ! -s update.patch ]; then
105103 echo "ℹ️ No template diffs; only SHA bump will occur."
106104 else
107- if ! git apply --index -- 3way update.patch; then
105+ if ! git apply --3way update.patch; then
108106 echo "::error ::Merge conflicts detected; aborting."
109107 exit 1
110108 fi
109+ git add -A
111110 echo "✅ Applied template changes"
112111 fi
113112
You can’t perform that action at this time.
0 commit comments