forked from cosmos/chain-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (49 loc) · 1.58 KB
/
update_chainjson.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
53
54
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * *"
name: Update chain.json
jobs:
update_chainjson:
name: Update chains' chain.json
runs-on: ubuntu-latest
steps:
- name: checkout registry
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.9
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
cd .github/workflows/utility
python -m pip install requests
- name: Check chain JSON Update
shell: python
run: |
import sys
sys.path.insert(1, '.github/workflows/utility')
import update_chaindata
update_chaindata.checkUpdate()
- name: Add Commit Push
uses: devops-infra/action-commit-push@master
with:
github_token: "${{ secrets.GITHUB_TOKEN }}"
add_timestamp: false
commit_prefix: "[AUTO]"
commit_message: "Chain.json automatic update"
force: false
target_branch: update/chainjsonv2
- name: Create A PR
uses: devops-infra/action-pull-request@v0.4.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
source_branch: update/chainjsonv2
target_branch: master
title: Chain.json automatic update
body: "**Automated pull request**"
old_string: "**THIS IS AN AUTOMATED UPDATE OF CHAIN.JSON**"
new_string: "** Automatic pull request**"
get_diff: true
ignore_users: "dependabot"