-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (30 loc) · 1.16 KB
/
Copy pathschema-compatibility-cron.yml
File metadata and controls
36 lines (30 loc) · 1.16 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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.4.0
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