Skip to content

Commit 2e9fae5

Browse files
WIP
1 parent 1e5524a commit 2e9fae5

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ jobs:
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 \
@@ -89,7 +88,6 @@ jobs:
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

0 commit comments

Comments
 (0)