-
Notifications
You must be signed in to change notification settings - Fork 7
66 lines (60 loc) · 2.05 KB
/
Child.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
# This is a basic workflow to help you get started with Actions
# change 1
name: Teams Notification Test
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the main branch
# #push:
# # branches: [ main ]
# #pull_request:
# # branches: [ main ]
#
# # Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
parent-job:
required: false
type: string
default: ""
workflow_call:
inputs:
parent-job:
required: true
type: string
permissions:
packages: write
contents: read
id-token: write
actions: write
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
demo-job:
# The type of runner that the job will run on
name: Demo Job
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- 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: Demo Job
parent-job: ${{ inputs.parent-job }}
- uses: actions/checkout@v3
# Runs a set of commands using the runners shell
- 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