From 822af474091985adf2acb0df1f87fe573325876a Mon Sep 17 00:00:00 2001 From: Tim Bond Date: Fri, 12 Apr 2024 17:55:21 -0700 Subject: [PATCH] Debugging --- .github/workflows/build-check.sh | 6 ++++++ .github/workflows/build-check.yml | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-check.sh b/.github/workflows/build-check.sh index a86cada..325cf66 100755 --- a/.github/workflows/build-check.sh +++ b/.github/workflows/build-check.sh @@ -1,7 +1,9 @@ #!/bin/sh set -e +echo Begin composer build +echo Built changes=$( git status --porcelain | # ignore files that change every time the build command runs @@ -12,6 +14,8 @@ changes=$( grep -vi "^.. Docker" ) +echo Determined changes + if [ -n "$changes" ]; then echo "\e[31mYou forgot to commit changes to the docs dir!\e[0m" echo 'On your local run \e[33mcomposer build\e[0m then \e[33mgit add\e[0m your changes to the docs dir' @@ -23,3 +27,5 @@ if [ -n "$changes" ]; then else echo 'No changes detected 👍' fi + +echo Complete diff --git a/.github/workflows/build-check.yml b/.github/workflows/build-check.yml index 824d348..0fa3040 100644 --- a/.github/workflows/build-check.yml +++ b/.github/workflows/build-check.yml @@ -27,4 +27,4 @@ jobs: php_version: 8.3 - name: Check for uncommitted files - run: ./.github/workflows/build-check.sh + run: echo Start;./.github/workflows/build-check.sh;echo Finish