-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdispatch-learner-experience-e2e.yml
More file actions
44 lines (40 loc) · 1.44 KB
/
Copy pathdispatch-learner-experience-e2e.yml
File metadata and controls
44 lines (40 loc) · 1.44 KB
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
43
44
# Trigger for learner-experience-integration-tests after staging WC deploy.
# Called from ci-cd.yml as dispatch-e2e after deploy-main succeeds on main.
name: Dispatch learner-experience E2E
on:
workflow_call:
inputs:
deploy_url:
description: Staging WC URL included in client_payload
type: string
default: https://staging-editor-static.raspberrypi.org/branches/main/web-component.html
ref:
description: Git ref reported in client_payload
type: string
default: main
commit_message:
description: Optional commit message override
type: string
default: ""
notify_on_success:
description: Ask learner-experience E2E to Slack on pass (failures always notify)
type: boolean
default: false
jobs:
dispatch:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Trigger learner-experience integration tests
env:
TOKEN: ${{ secrets.LEARNER_EXPERIENCE_TESTS_DISPATCH_TOKEN }}
SHA: ${{ github.sha }}
REF: ${{ inputs.ref }}
DEPLOY_URL: ${{ inputs.deploy_url }}
COMMIT_MESSAGE_INPUT: ${{ inputs.commit_message }}
PR_NUMBER: ${{ github.event.pull_request.number || '' }}
NOTIFY_ON_SUCCESS: ${{ inputs.notify_on_success }}
run: ./.github/scripts/dispatch-learner-experience-e2e.sh