Skip to content

Commit

Permalink
Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
cookieguru committed Apr 13, 2024
1 parent b39a97e commit 97020ba
Showing 1 changed file with 48 additions and 1 deletion.
49 changes: 48 additions & 1 deletion .github/workflows/build-check.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 97020ba

Please sign in to comment.