File tree 1 file changed +9
-13
lines changed 1 file changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -47,21 +47,17 @@ jobs:
47
47
restore-keys : |
48
48
${{ runner.os }}-yarn-
49
49
- 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
54
50
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
61
52
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
65
61
66
62
tests-php-components :
67
63
runs-on : ubuntu-latest
You can’t perform that action at this time.
0 commit comments