Monitoring #303
This file contains 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: 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 | |
- name: Update Disciplines | |
run: | | |
bash updateDisciplines.sh | |
git config user.name Github Action | |
git config user.email [email protected] | |
git add src/disciplines.json | |
timestamp=$(date -u) | |
git commit -m "update disciplines: ${timestamp}" || exit 0 | |
git push |