-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (69 loc) · 2.1 KB
/
test-workflow.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
on: workflow_dispatch
name: Test
jobs:
create-and-update-deployment:
name: Run local create-deployment
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Create deployment
id: create-deployment
uses: ./create-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
ref: main
task: deploy
auto-merge: false
required-contexts: ""
payload: '{
"test": "test-payload"
}'
environment: test
description: ""
production-environment: false
transient-environment: false
- name: Create deployment status
uses: ./create-deployment-status
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
deployment-id: ${{ steps.create-deployment.outputs.deployment-id }}
state: success
remove-deployment:
needs: create-and-update-deployment
name: Run local remove-deployment
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Local Action
uses: ./remove-deployment
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
environment: test
configure-aws-credentials:
name: Configure AWS credentials
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Local Action
uses: ./configure-aws-credentials
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-session-token: ${{ secrets.AWS_SESSION_TOKEN }}
aws-profile: sp-exp-1
create-workflow-dispatch:
name: Run local workflow dispatch
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Local Action
uses: ./create-workflow-dispatch
with:
ref: main
github-token: ${{ secrets.GITHUB_TOKEN }}
workflow-id: lint-and-package-workflow.yml
inputs: '{"test": "true"}'