Update wishlist leaderboard #369
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
name: Update wishlist leaderboard | |
on: | |
schedule: | |
# Run every 3 hours | |
- cron: '0 */3 * * *' | |
permissions: | |
contents: read | |
issues: write | |
jobs: | |
update-wishlist-leaderboard: | |
if: github.repository == 'paritytech/polkadot-sdk' | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install PyGithub | |
- name: Update developer wishlist | |
env: | |
GH_TOKEN: ${{ github.token }} | |
WISHLIST_REPOSITORY: "paritytech/polkadot-sdk" | |
WISHLIST_ISSUE_NUMBER: "3900" | |
run: python .github/scripts/update-wishlist-leaderboard.py | |
- name: Update user wishlist | |
env: | |
GH_TOKEN: ${{ github.token }} | |
WISHLIST_REPOSITORY: "paritytech/polkadot-sdk" | |
WISHLIST_ISSUE_NUMBER: "3901" | |
run: python .github/scripts/update-wishlist-leaderboard.py |