Skip to content

Version v12.3.1 RC #3021

Version v12.3.1 RC

Version v12.3.1 RC #3021

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 }}"}}'