-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (42 loc) · 1.43 KB
/
Copy pathpipeline.yml
File metadata and controls
52 lines (42 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Daily Job Market Pipeline
on:
schedule:
- cron: "0 14 * * *" # 14:00 UTC = 7:00 AM PST / 10:00 AM EST
workflow_dispatch:
jobs:
run-pipeline:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.11"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Download existing DB from HuggingFace
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_REPO: ${{ secrets.HF_REPO }}
run: python scripts/download_db.py
- name: Run pipeline
env:
ADZUNA_APP_ID: ${{ secrets.ADZUNA_APP_ID }}
ADZUNA_APP_KEY: ${{ secrets.ADZUNA_APP_KEY }}
run: python run_pipeline.py
- name: Update README with today's market stats
run: python scripts/update_readme.py
- name: Upload updated DB to HuggingFace
env:
HF_TOKEN: ${{ secrets.HF_TOKEN }}
HF_REPO: ${{ secrets.HF_REPO }}
run: python scripts/upload_db.py
- name: Commit updated README
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add README.md
git diff --staged --quiet || git commit -m "auto: market report $(date -u '+%Y-%m-%d')"
git push