Skip to content

Commit 4931206

Browse files
committed
improve error messages in ci
1 parent e484083 commit 4931206

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/ci-testing-pull-request.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ jobs:
3535
run: |
3636
uv venv .venv && source .venv/bin/activate
3737
make openapi-specs
38-
./ci/github/helpers/openapi-specs-diff.bash diff \
38+
if !./ci/github/helpers/openapi-specs-diff.bash diff \
3939
https://raw.githubusercontent.com/${{ github.event.pull_request.head.repo.full_name }}/refs/heads/${{ github.event.pull_request.head.ref }} \
40-
.
40+
.; then \
41+
echo "::error OAS are not up to date. Run 'make openapi-specs' to update them"; \
42+
fi
4143
42-
api-server-backwards-compatibility:
44+
api-server-oas-breaking:
4345
needs: api-specs
4446
timeout-minutes: 10
4547
name: "api-server backwards compatibility"
@@ -62,7 +64,7 @@ jobs:
6264
https://raw.githubusercontent.com/${{ github.event.pull_request.base.repo.full_name }}/refs/heads/${{ github.event.pull_request.base.ref }}/services/api-server/openapi.json \
6365
/specs/services/api-server/openapi.json
6466
65-
oas-backwards-compatibility:
67+
all-oas-breaking:
6668
needs: api-specs
6769
continue-on-error: true
6870
timeout-minutes: 10

0 commit comments

Comments
 (0)