-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 970 Bytes
/
schedule.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
34
name: Schedule
on:
schedule:
- cron: '55 12 * * *' # post mainnet epoch
# - cron: '00 12 * * *' # pre mainnet epoch
# - cron: '00 11 * * *' # post testnet epoch
# - cron: '0 10 * * *' # pre testnet epoch
- cron: '0 */6 * * *' # every 3 hours
jobs:
liquidstakeibc:
# if: github.event.schedule == '55 12 * * *'
if: github.event.schedule == '0 */6 * * *'
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./package-lock.json
- name: Install dependencies
run: npm ci
- name: Run get data to make weights
run: npm run update-stkatom-valset-weights
env:
MNEMONIC: ${{ secrets.MNEMONIC }}