Skip to content

Commit f200e24

Browse files
authored
Create top-ranked-issues cron job (#2268)
* Create top-ranked-issues.yml * Update run name * Update cron schedule to every 10 min
1 parent 254d82f commit f200e24

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Update Top Ranked Issues
2+
3+
on:
4+
# For testing purposes (can be removed later)
5+
pull_request:
6+
schedule:
7+
# # Runs every day at 3:00 AM UTC
8+
# - cron: '0 3 * * *'
9+
- cron: */10 * * * *
10+
jobs:
11+
run-script:
12+
runs-on: ubuntu-latest
13+
14+
env:
15+
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16+
17+
steps:
18+
- name: Check out the repository
19+
uses: actions/checkout@v4 # This ensures the repository code is available
20+
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version: "3.12"
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade pip
29+
pip install PyGithub
30+
31+
- name: Run update_top_ranking_issues.py
32+
run: |
33+
python ./scripts/update_top_ranking_issues.py

0 commit comments

Comments
 (0)