Generate Assetlist #292
Workflow file for this run
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
| # Description: Generates the assetlist.json file from zone and chain registry data | |
| # Included in: Generate All Files bundle workflow (runs every Monday at 12:00 UTC) | |
| # Trigger: Manual via workflow_dispatch only (standalone run) | |
| # Output: Creates PR with assetlist.json to branch 'update/assetlist' | |
| on: [workflow_dispatch] | |
| name: Generate Assetlist | |
| jobs: | |
| generate_zone_config: | |
| name: Generate Assetlist | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| shell: bash | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| submodules: true | |
| - name: Git Submodule Update | |
| run: | | |
| git submodule update --init --recursive | |
| git submodule update --recursive --remote | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| - name: Install dependencies | |
| run: npm install | |
| - name: Install pnpm | |
| run: npm install -g pnpm | |
| - name: Run code to Generate Assetlist | |
| working-directory: ./.github/workflows/utility | |
| run: node generate_assetlist.mjs | |
| - name: Trigger Translation | |
| run: | | |
| # Replace the following command with the command to trigger translation using InLang CLI or API | |
| # pnpm inlang machine translate --force | |
| - name: Add Commit Push | |
| uses: devops-infra/action-commit-push@master | |
| with: | |
| github_token: "${{ secrets.GITHUB_TOKEN }}" | |
| add_timestamp: false | |
| commit_prefix: "[AUTO]" | |
| commit_message: "assetlist.json Update" | |
| force: false | |
| target_branch: update/assetlist | |
| - name: Create A PR | |
| uses: devops-infra/[email protected] | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| source_branch: update/assetlist | |
| target_branch: main | |
| title: assetlist.json Update | |
| body: "**Automated pull request**" | |
| old_string: "**THIS IS AN AUTOMATED UPDATE OF ASSETLIST.JSON**" | |
| new_string: "** Automatic pull request**" | |
| get_diff: true | |
| ignore_users: "dependabot" |