Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions .github/workflows/pr-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -320,18 +320,21 @@ jobs:
- run: git submodule init && git submodule update
- id: schema-update
name: Update schemas
run: |
bash /home/runner/work/cryostat/cryostat/schema/update.bash 90 15
set +e
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/openapi.yaml > /home/runner/work/openapi.diff
echo "openapi_status=$?" >> "$GITHUB_OUTPUT"
echo "openapi_diff_file=openapi.diff" >> "$GITHUB_OUTPUT"
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/schema.graphql > /home/runner/work/graphql.diff
echo "graphql_status=$?" >> "$GITHUB_OUTPUT"
echo "graphql_diff_file=graphql.diff" >> "$GITHUB_OUTPUT"
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/notifications.yaml > /home/runner/work/notifications.diff
echo "notifications_status=$?" >> "$GITHUB_OUTPUT"
echo "notifications_diff_file=notifications.diff" >> "$GITHUB_OUTPUT"
uses: Wandalen/wretry.action@v3.8.0
with:
attempt_limit: 3
command: |
bash /home/runner/work/cryostat/cryostat/schema/update.bash 90 15
set +e
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/openapi.yaml > /home/runner/work/openapi.diff
echo "openapi_status=$?" >> "$GITHUB_OUTPUT"
echo "openapi_diff_file=openapi.diff" >> "$GITHUB_OUTPUT"
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/schema.graphql > /home/runner/work/graphql.diff
echo "graphql_status=$?" >> "$GITHUB_OUTPUT"
echo "graphql_diff_file=graphql.diff" >> "$GITHUB_OUTPUT"
git diff -U10 --exit-code /home/runner/work/cryostat/cryostat/schema/notifications.yaml > /home/runner/work/notifications.diff
echo "notifications_status=$?" >> "$GITHUB_OUTPUT"
echo "notifications_diff_file=notifications.diff" >> "$GITHUB_OUTPUT"
- uses: actions/upload-artifact@v7
with:
name: openapi-diff
Expand Down
Loading