diff --git a/.github/workflows/update-config-files.yml b/.github/workflows/update-config-files.yml deleted file mode 100644 index b98457ccca8..00000000000 --- a/.github/workflows/update-config-files.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Update fast sync settings - -on: - schedule: - - cron: '0 0 * * 0' - workflow_dispatch: - -permissions: - contents: write - pull-requests: write - -jobs: - update-configs: - name: Update fast sync settings - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@v4 - - 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 GitHub app token - id: gh-app - uses: actions/create-github-app-token@v1 - with: - app-id: ${{ vars.APP_ID }} - private-key: ${{ secrets.APP_PRIVATE_KEY }} - - name: Create a pull request - env: - GH_TOKEN: ${{ steps.gh-app.outputs.token }} - run: | - head_branch=feature/fast-sync-config-${{ github.run_number }}-${{ github.run_attempt }} - git config user.name "${{ github.actor }}" - git config user.email "${{ github.actor }}@users.noreply.github.com" - git checkout -b $head_branch - git add -A - git commit -am "Auto-update fast sync settings" - git push origin $head_branch - gh pr create -B master -H $head_branch -t "Auto-update fast sync settings" \ - -b "Updated fast sync settings in the configuration files" -l configuration -l sync