Skip to content

Commit

Permalink
Added daily trigger requests
Browse files Browse the repository at this point in the history
  • Loading branch information
kshitijrajsharma committed Feb 1, 2024
1 parent 070ea82 commit 52b6a6d
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Run daily cron projects

on:
schedule:
- cron: "0 0 * * *" # Run every day at 0 UTC

jobs:
Run-Scheduled-Exports:
runs-on: ubuntu-latest
env:
RAWDATA_API_AUTH_TOKEN: ${{ secrets.RAWDATA_API_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v2

- name: Set up Python 3.11
uses: actions/setup-python@v1
with:
python-version: "3.11"

- name: Install dependencies
run: pip install -r requirements.txt

- name: Shoot daily projects

run: python tm_extractor.py --fetch-active-projects 24
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
requests==2.31.0

0 comments on commit 52b6a6d

Please sign in to comment.