update leaderboard #20411
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 leaderboard | |
on: | |
schedule: | |
- cron: "*/30 * * * *" | |
workflow_dispatch: | |
jobs: | |
crawl: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: update | |
fetch-depth: 0 | |
- run: yarn | |
- run: yarn "leaderboard:triggerNextCrawl" | |
env: | |
GOERLI_API_KEY: '${{ secrets.GOERLI_API_KEY }}' | |
- name: Commit files | |
run: | | |
git config --local user.email "github-actions[bot]@users.noreply.github.com" | |
git config --local user.name "github-actions[bot]" | |
git commit -a -m "Add changes" | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
force_with_lease: true | |
branch: update |