-
Notifications
You must be signed in to change notification settings - Fork 44
42 lines (36 loc) · 1.8 KB
/
trigger_cypress_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Trigger Cypress Test run
## Triggers the build of deployable images for the OE application.
## The actual build happens in a separate, public repository - to avoid wasting action minutes in the private repo
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
trigger-cypress:
name: Trigger Cypress
runs-on: ubuntu-latest
steps:
- name: Resolve ref
uses: rlespinasse/github-slug-action@v4
- name: Repository Dispatch
uses: peter-evans/[email protected]
with:
token: ${{ secrets.TKLACCESS_TOKEN }}
repository: toukanlabs/external-action-runner
event-type: "cypress_run_pr_tests_${{ env.GITHUB_REF_SLUG }}_${{ env.GITHUB_EVENT_PULL_REQUEST_HEAD_SHA_SHORT }}_${{ github.run_attempt}}"
client-payload: |
{
"GITHUB_BASE_REF": "${{ github.base_ref }}",
"GITHUB_REF": "${{ github.ref }}",
"GITHUB_SHA": "${{ github.sha }}",
"GITHUB_HEAD_REF": "${{ github.head_ref }}",
"GITHUB_HEAD_SHA": "${{ github.event.pull_request.head.sha }}",
"GITHUB_REPOSITORY": "${{ github.repository }}",
"GITHUB_RUN_ID": "${{ github.run_id }}",
"GITHUB_RUN_NUMBER": "${{ github.run_number }}",
"GITHUB_RUN_ATTEMPT": "${{ github.run_attempt }}",
"GITHUB_PULL_REQUEST": "${{ github.event.pull_request.number }}"
}
# Output actions path for toukanlabs/external-action-runner
- name: Link to external action
run: |
echo "To see progress go to https://github.com/toukanlabs/external-action-runner/actions and look for the run named 'Cypress - PR ${{ github.event.pull_request.number }} - Attempt ${{ github.run_attempt }} - Run id ${{ github.run_id }}'"