-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.48 KB
/
Copy pathupdate_conferences.yaml
File metadata and controls
61 lines (48 loc) · 1.48 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
53
54
55
56
57
58
59
60
61
name: Update Conferences
on:
workflow_dispatch: {} # allow manual runs
schedule:
- cron: "0 6 * * *" # every day at 06:00 UTC (adjust as needed)
push:
branches:
- "main"
paths:
- "miner/**" # rerun when your script changes
- ".github/workflows/update_conferences.yaml"
permissions:
contents: write # needed to push with GITHUB_TOKEN
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
concurrency:
group: update-readme
cancel-in-progress: false
jobs:
update-readme:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0 # helpful for committing back
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install deps (if any)
run: |
if [ -f miner/requirements.txt ]; then pip install -r miner/requirements.txt; fi
- name: Mine conferences from Researchr
run: python miner/get_confs_from_researchr.py
- name: Get J1C2 requirements
run: python miner/get_j1c2_requirements.py
- name: Commit changes (if any)
run: |
if git diff --quiet README.md; then
echo "No changes to commit."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "githubaction@noreply.github.com"
git add README.md
git commit -m "chore: update README"
git push