From 76eb2460b35816817d3d6cb0f78934de145fceaa Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:32:57 +0200 Subject: [PATCH 1/3] Create top-ranked-issues.yml --- .github/workflows/top-ranked-issues.yml | 33 +++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/top-ranked-issues.yml diff --git a/.github/workflows/top-ranked-issues.yml b/.github/workflows/top-ranked-issues.yml new file mode 100644 index 0000000000..c275d5ec13 --- /dev/null +++ b/.github/workflows/top-ranked-issues.yml @@ -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 * * *' + +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 Script + run: | + python ./scripts/update_top_ranking_issues.py From 733f81212cd59732db9aacb4b6742a2b7e04c532 Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:45:20 +0200 Subject: [PATCH 2/3] Update run name --- .github/workflows/top-ranked-issues.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/top-ranked-issues.yml b/.github/workflows/top-ranked-issues.yml index c275d5ec13..b8cce80dad 100644 --- a/.github/workflows/top-ranked-issues.yml +++ b/.github/workflows/top-ranked-issues.yml @@ -28,6 +28,6 @@ jobs: python -m pip install --upgrade pip pip install PyGithub - - name: Run Script + - name: Run update_top_ranking_issues.py run: | python ./scripts/update_top_ranking_issues.py From 5fcdb785b7a0113bbddb923d220638addd49f7ed Mon Sep 17 00:00:00 2001 From: "Adam R. Jensen" <39184289+AdamRJensen@users.noreply.github.com> Date: Sat, 19 Oct 2024 17:48:48 +0200 Subject: [PATCH 3/3] Update cron schedule to every 10 min --- .github/workflows/top-ranked-issues.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/top-ranked-issues.yml b/.github/workflows/top-ranked-issues.yml index c275d5ec13..f9c9826244 100644 --- a/.github/workflows/top-ranked-issues.yml +++ b/.github/workflows/top-ranked-issues.yml @@ -4,9 +4,9 @@ on: # For testing purposes (can be removed later) pull_request: schedule: - # Runs every day at 3:00 AM UTC - - cron: '0 3 * * *' - + # # Runs every day at 3:00 AM UTC + # - cron: '0 3 * * *' + - cron: */10 * * * * jobs: run-script: runs-on: ubuntu-latest