forked from osmosis-labs/assetlists
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (40 loc) · 1.21 KB
/
query_pools_auto.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Update Saved Pools Auto
on:
schedule:
- cron: '0 0 * * *' # Run daily
workflow_dispatch:
permissions: write-all
jobs:
update_saved_pools:
name: Update Saved Pools Auto
runs-on: ubuntu-latest
defaults:
run:
shell: bash
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
submodules: true
- name: Git Sumbodule Update
run: |
git submodule update --init --recursive
git submodule update --recursive --remote
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 19.6.0
- name: Run code to Query Pools
working-directory: ./.github/workflows/utility
run: node queryPools.mjs
- name: Add Commit Push
run: |
git config user.email "actions@example.com"
git config user.name "GitHub Actions"
# Add, commit, and push changes
git add .
git commit -m "[AUTO] Query and Save Pools"
git push origin main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}