We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1894c6b commit 3403e4cCopy full SHA for 3403e4c
.github/workflows/ci.yml
@@ -33,13 +33,8 @@ jobs:
33
uses: pre-commit/action@v2.0.0
34
- name: Generate APIs
35
run: bash scripts/update_api.sh
36
- - name: Verify API is up to date
37
- run: |
38
- if [[ -n $(git status -s) ]]; then
39
- echo "ERROR: generated code differ from the current sources:"
40
- git diff
41
- exit 1
42
- fi
+ - name: Verify generated API is up to date
+ run: git diff --exit-code
43
build:
44
name: Build
45
timeout-minutes: 30
scripts/update_api.sh
@@ -14,6 +14,7 @@ function update_api {
14
echo "Regenerated APIs"
15
else
16
echo "Exited due to errors"
17
+ exit 1
18
fi
19
}
20
0 commit comments