fix(config-types): skip legacy-config tests on invalid token, not crash #539
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: Trigger Downstream Flake Update on Push to Main | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - testnet | |
| - mainnet | |
| jobs: | |
| downstream-flake-update: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| include: | |
| - downstream-repo: 'blocksense-network/infra' | |
| steps: | |
| - uses: tibdex/github-app-token@v2.1.0 | |
| id: generate-token | |
| with: | |
| app_id: ${{ secrets.NIX_FLAKE_UPDATE_PR_BOT_APP_ID }} | |
| private_key: ${{ secrets.NIX_FLAKE_UPDATE_PR_BOT_APP_PRIVATE_KEY }} | |
| - name: Trigger Downstream Pipeline | |
| run: | | |
| curl -L -X POST \ | |
| -H "Accept: application/vnd.github+json" \ | |
| -H "Authorization: token ${{ steps.generate-token.outputs.token }}" \ | |
| -H "X-GitHub-Api-Version: 2022-11-28" \ | |
| "https://api.github.com/repos/${{ matrix.downstream-repo }}/dispatches" \ | |
| -d '{ | |
| "event_type": "flake-update", | |
| "client_payload":{"branch-trigger": "${{ github.ref_name }}"} | |
| }' |