-
Notifications
You must be signed in to change notification settings - Fork 9
45 lines (38 loc) · 1.08 KB
/
check-metadata.yml
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
37
38
39
40
41
42
43
44
45
name: Check eligibility server metadata
on:
workflow_dispatch:
schedule:
- cron: "0 13 * * *"
jobs:
check-metadata:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
agency: [mst, sbmtd]
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: .github/workflows/.python-version
cache: pip
- name: Install libraries
run: |
python3 -m pip install --upgrade pip
pip install requests
- name: Create config file
run: |
cat > metadata.json <<- EOM
${{ secrets.METADATA_CHECK_CONFIG }}
EOM
- name: Check server metadata
run: python .github/workflows/check-metadata.py ${{ matrix.agency }}
- name: Report failure to Slack
if: always()
uses: ravsamhq/notify-slack-action@v2
with:
status: ${{ job.status }}
notify_when: "failure"
env:
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}