-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (37 loc) · 1.28 KB
/
test.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
name: Test
on:
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set Node.js 14.x
uses: actions/setup-node@v3
with:
node-version: 14.x
- name: Install dependencies
run: npm ci
- name: Compile
run: npm run build
GetChangeDetails:
needs: build
runs-on: ubuntu-latest
name: Servicenow Get Change Details
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Servicenow Get Change Details
uses: ServiceNow/[email protected]
id: get
with:
devops-integration-user-name: ${{ secrets.SN_DEVOPS_USER }}
devops-integration-user-password: ${{ secrets.SN_DEVOPS_PASSWORD }}
instance-url: ${{ secrets.SN_INSTANCE_URL }}
context-github: ${{ toJSON(github) }}
tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }}
change-details: '{"pipeline_name":"maheshganji/custom-action-get/CustomActionGetWorkflow","stage_name":"ServiceNow Change Approval","build_number":"3732116819"}'
- name: Output of GetChangeDetails
run: echo "The Status of Update Change Request Details => ${{ steps.get.outputs.change-request-number }}"