Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
cookieguru committed Apr 13, 2024
1 parent cbc23bb commit 822af47
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/build-check.sh
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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'
Expand All @@ -23,3 +27,5 @@ if [ -n "$changes" ]; then
else
echo 'No changes detected 👍'
fi

echo Complete
2 changes: 1 addition & 1 deletion .github/workflows/build-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 822af47

Please sign in to comment.