[UPDATE] Config files (fast sync settings) #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
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 <[email protected]> | |
branch: configs-update | |
branch-suffix: short-commit-hash | |
base: master | |
- name: Check outputs | |
run: | | |
echo "Pull Request Number - ${{ env.PULL_REQUEST_NUMBER }}" |