Skip to content

Commit 79d8f05

Browse files
committed
fix: fix bash expression in the meson format check action
1 parent 631674e commit 79d8f05

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/meson.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,14 @@ jobs:
2121
pip install meson --break-system-packages
2222
2323
- name: Check Files
24-
run: >
25-
git ls-files
26-
--exclude='meson.build'
27-
--exclude='meson.options'
28-
--exclude='meson_options.txt'
29-
--ignored -c -z | xargs -0r
30-
meson format --check-only -c ./meson.format
31-
|| (echo "Not all meson files are formatted correctly" && exit 1)
32-
&& echo "All meson files are formatted correctly"
24+
run: |
25+
git ls-files --exclude='meson.build' --exclude='meson.options' --exclude='meson_options.txt' --ignored -c -z | xargs -0r meson format --check-only -c ./meson.format
26+
if [ $? -eq 0 ]; then
27+
echo "All meson files are formatted correctly"
28+
else
29+
echo "Not all meson files are formatted correctly"
30+
exit 1
31+
fi
3332
3433
## TODO: use mesonlint from
3534
## https://github.com/JCWasmx86/mesonlsp

0 commit comments

Comments
 (0)