Update mainnet ICOS versions file #1572
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: Update mainnet ICOS versions file | |
| on: | |
| schedule: | |
| - cron: "0 */2 * * *" | |
| workflow_dispatch: | |
| pull_request: | |
| paths: | |
| - '.github/workflows/update-mainnet-icos-revisions.yaml' | |
| defaults: | |
| run: | |
| shell: bash | |
| jobs: | |
| update-ic-versions-file: | |
| runs-on: ubuntu-latest | |
| environment: CREATE_PR | |
| steps: | |
| - name: Create GitHub App Token | |
| uses: actions/create-github-app-token@v1 | |
| id: app-token | |
| with: | |
| app-id: ${{ vars.PR_CREATION_BOT_APP_ID }} | |
| private-key: ${{ secrets.PR_CREATION_BOT_PRIVATE_KEY }} | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ steps.app-token.outputs.token }} | |
| - name: Update mainnet ICOS versions file | |
| env: | |
| GH_TOKEN: ${{ steps.app-token.outputs.token }} | |
| DRY_RUN: ${{ github.event_name == 'pull_request' && '--dry-run' || '' }} | |
| run: | | |
| set -eEuxo pipefail | |
| time python ci/src/mainnet_revisions/mainnet_revisions.py $DRY_RUN icos |