Skip to content

Commit 59a6efc

Browse files
committed
[CI] Fix and display changed dist files in the CI
1 parent ed474d2 commit 59a6efc

File tree

1 file changed

+9
-13
lines changed

1 file changed

+9
-13
lines changed

.github/workflows/test.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)