forked from NethermindEth/nethermind
-
Notifications
You must be signed in to change notification settings - Fork 0
56 lines (51 loc) · 1.66 KB
/
update-config-files.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
55
56
name: '[UPDATE] Config files (fast sync settings)'
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
permissions:
contents: write
pull-requests: write
jobs:
update-configs:
if: github.repository_owner == 'NethermindEth'
name: Update fast sync settings in config files
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: master
- name: Install dependencies
run: |
pip3 install setuptools
pip3 install emoji
- name: Update config files
run: |
python3 scripts/syncSettings.py ${{ secrets.ETHERSCAN_API_KEY }}
- name: Create pull request
uses: peter-evans/[email protected]
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Updating Fast Sync config files
body: |
Config files included:
- mainnet.cfg
- goerli.cfg
- sepolia.cfg
Properties refreshed:
- PivotNumber
- PivotHash
- PivotTotalDifficulty
- Auto-generated by [create-pull-request][1]
[1]: https://github.com/peter-evans/create-pull-request
title: "Update Fast Sync configuration in Nethermind repository"
labels: configs
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
committer: GitHub <[email protected]>
branch: configs-update
branch-suffix: short-commit-hash
base: master
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"