-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create top-ranked-issues cron job (#2268)
* Create top-ranked-issues.yml * Update run name * Update cron schedule to every 10 min
- Loading branch information
1 parent
254d82f
commit f200e24
Showing
1 changed file
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Update Top Ranked Issues | ||
|
||
on: | ||
# For testing purposes (can be removed later) | ||
pull_request: | ||
schedule: | ||
# # Runs every day at 3:00 AM UTC | ||
# - cron: '0 3 * * *' | ||
- cron: */10 * * * * | ||
jobs: | ||
run-script: | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 # This ensures the repository code is available | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install PyGithub | ||
- name: Run update_top_ranking_issues.py | ||
run: | | ||
python ./scripts/update_top_ranking_issues.py |