-
-
Notifications
You must be signed in to change notification settings - Fork 66
27 lines (24 loc) · 773 Bytes
/
leaderboard.yml
File metadata and controls
27 lines (24 loc) · 773 Bytes
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
name: Update organization leaderboard
on:
schedule:
- cron: "0 0 * * *" # every day at midnight UTC
workflow_dispatch: # allow manual runs
permissions:
contents: read
jobs:
leaderboard:
if: github.repository == 'NextCommunity/NextCommunity.github.io'
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
with:
python-version: "3.12"
- name: Run leaderboard script
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: python scripts/leaderboard.py