Skip to content

Commit 5971839

Browse files
committed
simplified
1 parent f27267e commit 5971839

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

.github/workflows/test.yaml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,21 +50,13 @@ jobs:
5050
- name: Check if js dist files are current
5151
id: changes
5252
run: |
53-
function check() {
54-
if [[ -z "$(git status --porcelain)" ]];
55-
then
56-
echo "0"
57-
else
58-
echo "1"
59-
fi
60-
}
61-
62-
echo "CHANGED=$(check)" >> $GITHUB_OUTPUT
53+
echo "STATUS=$(git status --porcelain)" >> $GITHUB_OUTPUT
6354
6455
- name: Ensure no changes
65-
if: steps.changes.outputs.changed == 1
56+
if: steps.changes.outputs.STATUS != ''
6657
run: |
6758
echo "JS dist files need to be rebuilt"
59+
echo "${{ steps.changes.outputs.STATUS }}"
6860
exit 1
6961
7062
tests-php-low-deps:

0 commit comments

Comments
 (0)