ABS Data Monitor #27
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: ABS Data Monitor | |
| on: | |
| # Allows the iPhone/Orchestrator to trigger this repo | |
| repository_dispatch: | |
| types: [trigger-all-repos] | |
| # Runs at 8:30 AM Melbourne Time (AEDT) | |
| # (30 21 UTC = 8:30 AM AEDT) | |
| schedule: | |
| - cron: '30 21 * * *' | |
| # Manual trigger button for your iPhone Shortcut | |
| workflow_dispatch: | |
| jobs: | |
| check-abs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: Install dependencies | |
| run: pip install requests beautifulsoup4 | |
| - name: Run Monitor | |
| run: python monitor.py | |
| env: | |
| TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
| # Standardizes the environment to Melbourne time | |
| TZ: 'Australia/Melbourne' |