Skip to content

[UPDATE] Config files (fast sync settings) #6

[UPDATE] Config files (fast sync settings)

[UPDATE] Config files (fast sync settings) #6

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: ${{ github.ref }}
- 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/create-pull-request@v5.0.2
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: Updating Fast Sync config files
body: |
Config files included:
- mainnet.cfg
- goerli.cfg
- gnosis.cfg
- chiado.cfg
- sepolia.cfg
- energyweb.cfg
- volta.cfg
- exosama.cfg
- joc-mainnet.cfg
- joc-testnet.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 <noreply@github.com>
branch: configs-update
branch-suffix: short-commit-hash
base: master
- name: Check outputs
run: |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}"