-
Notifications
You must be signed in to change notification settings - Fork 42
33 lines (33 loc) · 1.04 KB
/
updateLeaderboard.yml
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
28
29
30
31
32
33
---
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:
HUBSPOT_SECRET: '${{ secrets.HUBSPOT_SECRET }}'
GOERLI_API_KEY: '${{ secrets.GOERLI_API_KEY }}'
SEPOLIA_API_KEY: '${{ secrets.SEPOLIA_API_KEY }}'
ARB_SEPOLIA_API_KEY: '${{ secrets.ARB_SEPOLIA_API_KEY }}'
OPT_SEPOLIA_API_KEY: '${{ secrets.OPT_SEPOLIA_API_KEY }}'
AMOY_API_KEY: '${{ secrets.AMOY_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