Skip to content

Commit 63ea579

Browse files
authored
chore: fix broken script to detect API diff on bots (#487)
1 parent 979182b commit 63ea579

File tree

2 files changed

+9
-22
lines changed

2 files changed

+9
-22
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,15 @@ jobs:
3232
run: python -m playwright install
3333
- name: Lint
3434
run: pre-commit run --all-files
35-
- name: Test Sync generation script
36-
run: bash scripts/verify_api.sh
35+
- name: Generate APIs
36+
run: bash scripts/update_api.sh
37+
- name: Verify API is up to date
38+
run: |
39+
if [[ -n $(git status -s) ]]; then
40+
echo "ERROR: generated code differ from the current sources:"
41+
git diff
42+
exit 1
43+
fi
3744
build:
3845
name: Build
3946
timeout-minutes: 30

scripts/verify_api.sh

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)