From 97020baafd09d0cce41ec980de5d9dd575b450ab Mon Sep 17 00:00:00 2001 From: Tim Bond Date: Fri, 12 Apr 2024 20:57:35 -0700 Subject: [PATCH] Debug --- .github/workflows/build-check.sh | 49 +++++++++++++++++++++++++++++++- 1 file changed, 48 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-check.sh b/.github/workflows/build-check.sh index dc2c443..b688ff2 100755 --- a/.github/workflows/build-check.sh +++ b/.github/workflows/build-check.sh @@ -10,6 +10,53 @@ else composer build -vvv fi +echo 1 + +git status --porcelain + +echo 2 + +git status --porcelain | +# ignore files that change every time the build command runs +grep -v "^ M docs/atom\.xml$" + +echo 3 + +git status --porcelain | +# ignore files that change every time the build command runs +grep -v "^ M docs/atom\.xml$" | +grep -v "^ M docs/sitemap\.xml$" + +echo 4 + +git status --porcelain | +# ignore files that change every time the build command runs +grep -v "^ M docs/atom\.xml$" | +grep -v "^ M docs/sitemap\.xml$" +# the following two are specific to GitHub Actions + +echo 5 + +git status --porcelain | +# ignore files that change every time the build command runs +grep -v "^ M docs/atom\.xml$" | +grep -v "^ M docs/sitemap\.xml$" | +# the following two are specific to GitHub Actions +grep -v "^.. output\.log$" + +echo 6 + +git status --porcelain | +# ignore files that change every time the build command runs +grep -v "^ M docs/atom\.xml$" | +grep -v "^ M docs/sitemap\.xml$" | +# the following two are specific to GitHub Actions +grep -v "^.. output\.log$" | +grep -vi "^.. Docker" + +echo 7 + + changes=$( git status --porcelain | # ignore files that change every time the build command runs @@ -20,7 +67,7 @@ changes=$( grep -vi "^.. Docker" ) -if [[ -n "$changes" ]]; then +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' echo 'Then \e[33mgit commit --amend\e[0m and \e[33mgit push --force\e[0m'