Merge pull request #29069 from MetaMask/Version-v12.9.1 #3601
This file contains 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 MetaMask Institutional E2E CI | |
on: | |
push: | |
branches: [ Version-v*, master ] | |
pull_request: | |
branches: [ Version-v*, master ] | |
types: | |
- opened | |
- reopened | |
- synchronize | |
- ready_for_review | |
jobs: | |
trigger-mmi-e2e-ci: | |
runs-on: ubuntu-latest | |
if: ${{ (!github.event.pull_request.draft && (startsWith(github.head_ref, 'Version-v') || github.head_ref == 'master')) || (!github.event.pull_request) }} | |
steps: | |
- name: Trigger MetaMask Institutional E2E CI | |
env: | |
MMI_E2E_CI_TOKEN: ${{ secrets.MMI_E2E_CI_TOKEN }} | |
run: | | |
curl -L -X POST \ | |
-H "Accept: application/vnd.github+json" \ | |
-H "Authorization: Bearer $MMI_E2E_CI_TOKEN" \ | |
-H "X-GitHub-Api-Version: 2022-11-28" \ | |
https://api.github.com/repos/consensys-vertical-apps/mmi-extension-e2e/dispatches \ | |
-d '{"event_type": "mm-triggered", "client_payload":{"ref_name": "${{ github.ref_name }}", "sha": "${{ github.sha }}"}}' |