Skip to content

Commit 39aa87a

Browse files
Update template_update.yml
1 parent 8751635 commit 39aa87a

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

.github/workflows/template_update.yml

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ jobs:
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
# ─────────────────────────── Setup ───────────────────────────
2625
- name: Checkout project repo
2726
uses: actions/checkout@v4
2827
with:
@@ -38,7 +37,6 @@ jobs:
3837
- name: Install dependencies
3938
run: pip install cookiecutter jq
4039

41-
# ───────────── Read old SHA & compare with template HEAD ─────────────
4240
- name: Read old template SHA
4341
id: old_sha
4442
run: |
@@ -54,7 +52,7 @@ jobs:
5452
run: |
5553
echo "sha=$(git ls-remote '${{ inputs.template_repo }}' HEAD | cut -f1)" >> "$GITHUB_OUTPUT"
5654
57-
- name: Decide whether to continue
55+
- name: Determine if Template was updated
5856
run: |
5957
if [ "${{ steps.old_sha.outputs.sha }}" = "${{ steps.new_sha.outputs.sha }}" ]; then
6058
echo "SHA_CHANGED=false" >> "$GITHUB_ENV"
@@ -66,7 +64,6 @@ jobs:
6664
if: env.SHA_CHANGED == 'false'
6765
run: echo "✂️ SHA unchanged; nothing to update."
6866

69-
# ───────────────── Clone template repo at both SHAs ─────────────────
7067
- name: Clone template at OLD SHA
7168
if: env.SHA_CHANGED == 'true'
7269
run: |
@@ -77,7 +74,6 @@ jobs:
7774
if: env.SHA_CHANGED == 'true'
7875
run: git clone '${{ inputs.template_repo }}' template-source
7976

80-
# ────────────────────── Render OLD template ──────────────────────
8177
- name: Render OLD template (base-template → template-base)
8278
if: env.SHA_CHANGED == 'true'
8379
run: |
@@ -89,7 +85,6 @@ jobs:
8985
--overwrite-if-exists \
9086
--output-dir template-base
9187
92-
# ────────────────────── Render NEW template ──────────────────────
9388
- name: Render NEW template (template-source → template-new)
9489
if: env.SHA_CHANGED == 'true'
9590
run: |
@@ -101,7 +96,6 @@ jobs:
10196
--overwrite-if-exists \
10297
--output-dir template-new
10398
104-
# ───────────── diff, merge, bump SHA, push branch, open PR ─────────────
10599
- name: Apply patch & raise PR
106100
if: env.SHA_CHANGED == 'true'
107101
shell: bash

0 commit comments

Comments
 (0)