Skip to content

Commit

Permalink
add monitoring script
Browse files Browse the repository at this point in the history
  • Loading branch information
nimarion committed Nov 27, 2023
1 parent 518bfa1 commit 2ed7695
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 3 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/monitoring.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Monitoring

on:
schedule:
- cron: '0 3 * * *'
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Run monitoring script
uses: actions/checkout@v4
- run: |
bash monitoring.sh
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
[![Swagger Playground](https://stellate.co/badge.svg)](https://worldathletics.pfingstsportfest.de/swagger)


# worldathletics

The project provides a standardized method for fetching athlete and competition data from worldathletics. The server applies schema validation, value conversion and error handling for all fields retrieved from the worldathletics backend.
Expand Down
11 changes: 11 additions & 0 deletions monitoring.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash

set -e

ids=("14720623" "14597875" "14856078" "14377384" "14597052")

for id in "${ids[@]}"
do
echo "Checking $id"
curl -o /dev/null --silent --show-error --fail https://worldathletics.pfingstsportfest.de/athletes/$id
done

0 comments on commit 2ed7695

Please sign in to comment.