-
Notifications
You must be signed in to change notification settings - Fork 8
35 lines (29 loc) · 1.07 KB
/
deploy_to_sandbox.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
name: Deploy to Sandbox....
on:
push:
branches:
- sandbox
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: UKHSA-Internal/[email protected]
with:
url: ${{ secrets.SANDBOXPUBLISHPROFILE }}
data: >
{"command": "publish"}
test:
runs-on: ubuntu-latest
name: Automated Regression Tests of COVID19 Dashboard Website
needs: build
steps:
# ## calls the AIQ-Automation-Covid-Dashboard workflow to run the automated tests
- name: Calls AIQ-Automation-Covid-Dashboard workflow to run the automated tests
run: |
curl -L \
-X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.ACCESS_TOKEN }} " \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/UKHSA-Internal/AIQ-Automation-Covid-Dashboard/actions/workflows/CovidDashboard_CI.yml/dispatches \
-d '{"ref":"main","inputs": { "DExecution_Env":"Sandbox", "DScenarioNameTest":"SmokeTests_Scenario" }}'