File tree Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Expand file tree Collapse file tree 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,17 @@ jobs:
4747 restore-keys : |
4848 ${{ runner.os }}-yarn-
4949 - run : yarn --immutable && yarn build
50- - name : Check if js dist files are current
51- id : changes
52- run : |
53- echo "STATUS=$(git status --porcelain)" >> $GITHUB_OUTPUT
5450
55- - name : No changes found
56- if : steps.changes.outputs.STATUS == ''
57- run : |
58- echo "git status is clean"
59- - name : Changes were found
60- if : steps.changes.outputs.STATUS != ''
51+ - name : Check if JS dist files are current
6152 run : |
62- echo "JS dist files need to be rebuilt"
63- echo "${{ steps.changes.outputs.STATUS }}"
64- exit 1
53+ if [[ -n $(git status --porcelain) ]]; then
54+ echo "The Git workspace is unclean! Changes detected:"
55+ git status --porcelain
56+ git diff
57+ exit 1
58+ else
59+ echo "The Git workspace is clean. No changes detected."
60+ fi
6561
6662 tests-php-components :
6763 runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments