From ff5c5146533a0fff949f2cb8713cb14a9101fc61 Mon Sep 17 00:00:00 2001 From: Sammy Hori Date: Wed, 12 Nov 2025 12:40:59 +0000 Subject: [PATCH 1/2] Set the Build workflow to only commit if the README changes If the README hasn't changed (e.g. a data.json reformat was done), it currently attempts to commit and fails, causing a workflow failure. --- .github/workflows/build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index aaafdcc..f39b73c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,12 @@ jobs: run: sudo pip install jinja2 - name: Build run: python3 .github/scripts/render-readme.py + - name: Check if file changed + id: changedCheck + continue-on-error: true + run: git diff --exit-code README.md - name: Commit + if: steps.changedCheck.outcome == 'failure' run: | git config --global user.name 'Shmavon Gazanchyan' git config --global user.email 'MunGell@users.noreply.github.com' From a5850be0a028caa6d80b6a844bfa8225b01114d2 Mon Sep 17 00:00:00 2001 From: Sammy Hori Date: Wed, 12 Nov 2025 12:42:41 +0000 Subject: [PATCH 2/2] Replaced old template file with new one in Build workflow This will cause the Build workflow to be triggered by changes to the new template. --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f39b73c..44e039e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,7 +6,7 @@ on: - main paths: - 'data.json' - - '.github/tpl.md' + - '.github/README-template.j2' jobs: build: