[bot] - Update lists #116
This file contains hidden or 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: 📑 Updating lists | |
| on: | |
| schedule: | |
| - cron: '0 0 * * Sun' | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| if: "!contains(github.event.head_commit.message, '[bot] - Update lists')" | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| fetch-depth: 0 | |
| - name: GoSetup | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version-file: './go.mod' | |
| go-version: '1.23.4' | |
| - name: run | |
| env: | |
| RPC_URI_FOR_1: ${{ secrets.RPC_URI_FOR_1 }} | |
| RPC_URI_FOR_10: ${{ secrets.RPC_URI_FOR_10 }} | |
| RPC_URI_FOR_56: ${{ secrets.RPC_URI_FOR_56 }} | |
| RPC_URI_FOR_100: ${{ secrets.RPC_URI_FOR_100 }} | |
| RPC_URI_FOR_137: ${{ secrets.RPC_URI_FOR_137 }} | |
| RPC_URI_FOR_250: ${{ secrets.RPC_URI_FOR_250 }} | |
| RPC_URI_FOR_252: ${{ secrets.RPC_URI_FOR_252 }} | |
| RPC_URI_FOR_288: ${{ secrets.RPC_URI_FOR_288 }} | |
| RPC_URI_FOR_8453: ${{ secrets.RPC_URI_FOR_8453 }} | |
| RPC_URI_FOR_42161: ${{ secrets.RPC_URI_FOR_42161 }} | |
| RPC_URI_FOR_42170: ${{ secrets.RPC_URI_FOR_42170 }} | |
| RPC_URI_FOR_56288: ${{ secrets.RPC_URI_FOR_56288 }} | |
| RPC_URI_FOR_81457: ${{ secrets.RPC_URI_FOR_81457 }} | |
| RPC_URI_FOR_111188: ${{ secrets.RPC_URI_FOR_111188 }} | |
| BEARER_FOR_1INCH: ${{ secrets.BEARER_FOR_1INCH }} | |
| RPC_URI_FOR_747474: ${{ secrets.RPC_URI_FOR_747474 }} | |
| run: go run ./generators tokens | |
| - name: Commit files | |
| run: | | |
| git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" | |
| git config --local user.name "github-actions[bot]" | |
| git commit -a -m "[bot] - Update lists" | |
| - name: Push changes | |
| uses: ad-m/github-push-action@d30dc2d070765d7e509df00c34c5fa2dd636ff74 | |
| with: | |
| github_token: ${{ secrets.ACCESS_TOKEN || secrets.GITHUB_TOKEN }} | |
| branch: ${{ github.ref }} |