From ada1aebdba26a443df1a9bfd4e2d1623223ac19c Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Tue, 18 Apr 2023 18:49:21 +0100 Subject: [PATCH] Also commits the README when changes made --- .github/workflows/build-template.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/build-template.yml b/.github/workflows/build-template.yml index 81734e6..70b5a0c 100644 --- a/.github/workflows/build-template.yml +++ b/.github/workflows/build-template.yml @@ -45,3 +45,11 @@ jobs: git commit -m "Updates templates (auto-generated, on ${{ steps.date.outputs.date }})" git push fi + git add .github/README.md + if git diff --staged --quiet; then + echo "No need to update README, skipping..." + exit 0 + else + git commit -m "Updates template + source list in docs (auto-generated, on ${{ steps.date.outputs.date }})" + git push + fi