Skip to content

Commit 1473555

Browse files
authored
Create cron-deb-auth-service-api.yml
1 parent b31579a commit 1473555

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Poll API Every 5 Mins
2+
3+
on:
4+
schedule:
5+
- cron: '*/2 * * * *' # Runs every 5 minutes
6+
workflow_dispatch: # (optional) manual trigger from GitHub UI
7+
8+
jobs:
9+
poll-api:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
16+
- name: Setup Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install Requests
22+
run: pip install requests
23+
24+
- name: Run Python Script
25+
run: python main.py

0 commit comments

Comments
 (0)