-
Notifications
You must be signed in to change notification settings - Fork 7
52 lines (43 loc) · 1.32 KB
/
Parent.yaml
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
# Merge to main
#
name: Parent Job
on:
workflow_dispatch:
permissions:
packages: write
contents: read
id-token: write
actions: write
jobs:
Invoke-Teams-Workflow:
name: Invoke Teams Workflow
uses: sas-institute-rnd-ci360/eks-runner/.github/workflows/Teams-Notification.yml@main
with:
parent-job: Invoke Teams Workflow
secrets: inherit
Follow-up-Job:
runs-on: ubuntu-latest
name: Follow up Job
needs:
- Invoke-Teams-Workflow
steps:
- name: send notification
uses: dchourasia/[email protected]
with:
webhook-uri: https://sasoffice365.webhook.office.com/webhookb2/916137af-ddd2-414a-89a3-fc4ea8b76957@b1c14d5c-3625-45b3-a430-9552373a0c2f/JenkinsCI/917aefeb984a43b09c57dd35904076dc/191827ef-9406-42df-bc45-18ef3083908f
github-token: ${{ github.token }}
card-layout-exit: complete
job-name: Follow up Job
- uses: actions/checkout@v3
- name: Run a multi-line script
run: |
mkdir logs
cd logs
echo test, and deploy your project > artifact_1.txt
echo Add other actions to build > artifact_2.txt
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: archive logs
path: |
logs