-
Notifications
You must be signed in to change notification settings - Fork 6
44 lines (36 loc) · 1.18 KB
/
workflowToken.yml
File metadata and controls
44 lines (36 loc) · 1.18 KB
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
name: workflowToken
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
registerpackage:
needs: build
runs-on: ubuntu-latest
name: ServiceNow Register Package
steps:
- name: Checkout
uses: actions/checkout@v3
- name: ServiceNow Register Package
uses: ServiceNow/servicenow-devops-register-package@v3.1.0
id: update
with:
devops-integration-token: ${{ secrets.SN_DEVOPS_INTEGRATION_TOKEN }}
instance-url: ${{ secrets.SN_INSTANCE_URL }}
tool-id: ${{ secrets.SN_ORCHESTRATION_TOOL_ID }}
context-github: ${{ toJSON(github) }}
job-name: 'Register Package'
artifacts: '[{"name": "com:customactiondemo","version": "1.${{ github.run_number }}","semanticVersion": "1.${{ github.run_number }}.0","repositoryName": "${{ github.repository }}"}]'
package-name: 'registerpackage.war'