Skip to content

Commit 291b75e

Browse files
authored
Check command output directly in check-autogen-diff
1 parent c11d798 commit 291b75e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ jobs:
2020
fetch-depth: 2
2121
- name: Run auto-generated code checks
2222
run: |
23-
swift run --package-path Utilities WasmKitDevUtils wasmgen
24-
swift run --package-path Utilities WasmKitDevUtils vmgen
25-
[ $(git diff | wc -l) == 0 ] || exit 1
23+
[[ $(swift run -q --package-path Utilities WasmKitDevUtils wasmgen | wc -l) == 0 ]] || exit 1
24+
[[ $(swift run --package-path Utilities WasmKitDevUtils vmgen | wc -l) == 0 ]] || exit 1
2625
2726
build-macos:
2827
strategy:

0 commit comments

Comments
 (0)