Add YZM (#85) #67
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
| # This workflow runs scripts/generate_token_list_file.py and commits tokenlist-mainnet.json to this branch | |
| name: Generate Tokenlist | |
| on: | |
| push: | |
| branches: [main, master] | |
| jobs: | |
| generate-tokenlist: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| # Give the default GITHUB_TOKEN write permission to commit and push the | |
| # added or changed files to the repository. | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.10" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v4 | |
| with: | |
| enable-cache: true | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run generation script | |
| run: uv run python scripts/generate_token_list_file.py | |
| # Commit all changed files back to the repository | |
| - name: Commit changes | |
| uses: stefanzweifel/git-auto-commit-action@v5 | |
| with: | |
| commit_message: "Update tokenlist-mainnet.json" | |
| file_pattern: "tokenlist-mainnet.json" |