Poll DeB-Auth-Service API For Every 5 Mins #5593
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: Poll DeB-Auth-Service API For Every 5 Mins | |
| on: | |
| schedule: | |
| - cron: '*/5 * * * *' # Runs every 5 minutes | |
| workflow_dispatch: # (optional) manual trigger from GitHub UI | |
| jobs: | |
| poll-api: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@v3 | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.10' | |
| - name: Install Requests | |
| run: pip install requests | |
| - name: Run Python Script | |
| run: python main.py |