.. #321
Workflow file for this run
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: MQL Mimic Tests | |
on: | |
push: | |
branches: [ "**" ] | |
concurrency: | |
group: ${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
trigger-via-zapier: | |
name: Trigger Test Run | |
runs-on: ubuntu-20.04 | |
permissions: | |
checks: write | |
steps: | |
- name: "Trigger MQL Mimic Tests" | |
env: | |
trigger_url: '${{ secrets.MQL_MOCK_TRIGGER }}' | |
branch: '${{ github.ref_name }}' | |
repo: '${{ github.repository }}' | |
token: '${{ secrets.GITHUB_TOKEN }}' | |
sha: '${{ github.sha }}' | |
run: | | |
curl -X POST $trigger_url \ | |
-H 'Content-Type: application/json' \ | |
-d '{"branch":"'$branch'","repo":"'$repo'","token":"'$token'","sha":"'$sha'"}' | |
- name: Wait for check to be completed | |
uses: fountainhead/[email protected] | |
id: wait-for-build | |
# Wait for results so that the token remains valid while the test suite is executing and posting a check here. | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
checkName: "MQL Mimic Tests" | |
ref: ${{ github.sha }} | |
timeoutSeconds: 3600 |