Schema compatibility check (daily) #25
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Schema compatibility check (daily) | |
| on: | |
| schedule: | |
| - cron: "0 9 * * *" # daily at 09:00 UTC | |
| workflow_dispatch: # allow manual trigger | |
| jobs: | |
| check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.13" | |
| - run: pip install --upgrade openhexa.sdk | |
| - run: pip install requests | |
| - name: Check schema compatibility | |
| run: python scripts/check_schema_compatibility.py | |
| - name: Notify Slack on failure | |
| if: failure() | |
| uses: rtCamp/action-slack-notify@v2.3.3 | |
| env: | |
| SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
| SLACK_CHANNEL: "#openhexa-alerts" | |
| SLACK_USERNAME: "Schema Compatibility Check" | |
| SLACK_COLOR: failure | |
| SLACK_ICON_EMOJI: ":warning:" | |
| SLACK_TITLE: "GraphQL schema compatibility check failed" | |
| SLACK_MESSAGE: "The latest released OpenHEXA SDK has breaking changes against production. <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View run>" | |
| SLACK_FOOTER: "-" | |
| MSG_MINIMAL: true |