Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create top-ranked-issues cron job #2268

Merged
merged 4 commits into from
Oct 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions .github/workflows/top-ranked-issues.yml
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