generated from im-open/javascript-action-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
33 lines (30 loc) · 1.08 KB
/
action.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
name: 'create-pagerduty-incident'
description: 'An action that will create a PagerDuty incident.'
inputs:
pagerduty-api-key:
description: 'The PagerDuty API Key that allows access to your services.'
required: true
email:
description: 'The email address of a valid PagerDuty user on the account associated with the auth token.'
required: true
service-id:
description: 'The PagerDuty Service ID to create the incident for.'
required: true
title:
description: 'The title of the PagerDuty Incident that will be created. '
required: true
body:
description: 'The body of the PagerDuty Incident that will be created.'
required: false
urgency:
description: 'The urgency of the incident. Accepts: high or low. Defaults to high.'
required: false
default: high
outputs:
incident-id:
description: 'The ID of the incident that was just created.'
pagerduty-error-code:
description: 'The status code of the PagerDuty API request if it returns an error.'
runs:
using: 'node20'
main: 'dist/index.js'