-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathaction.yml
92 lines (78 loc) · 2.76 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
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: "Interactive Inputs"
description: "Introduce dynamic inputs to your workflows and use them in your actions"
author: "Leon Silcott <[email protected]>"
inputs:
title:
description: "The title of the interactive inputs form"
required: false
interactive:
description: "The representation (in yaml) of fields to be displayed"
required: true
default: |
fields:
- label: requested-files
properties:
display: Upload desired files
type: multifile
required: true
description: Upload desired files that are to be uploaded to the runner for processing
- label: random-string
properties:
display: Enter a random string
type: text
description: A random string up to 20 characters long
maxLength: 20
required: false
- label: choice
properties:
display: Select a monitoring tool
type: select
description: Available options to chose from
choices: ["datadog", "sentry", "grafana"]
required: true
timeout:
description: "The timeout in seconds for the interactive inputs form"
required: false
default: "300"
ngrok-authtoken:
description: "The authtoken for ngrok used to expose the interactive inputs form"
required: true
github-token:
description: "The token used to authenticate with GitHub API"
required: true
default: ${{ github.token }}
notifier-slack-enabled:
description: "Whether to send a notification to Slack about the status of the interative inputs form"
default: "false"
required: true
notifier-slack-thread-ts:
description: "The timestamp of the message to reply to in the thread"
required: false
notifier-slack-token:
description: "The token used to authenticate with Slack API"
default: "xoxb-secret-token"
required: true
notifier-slack-channel:
description: "The channel to send the notification to"
required: true
default: "#notificaitons"
notifier-slack-bot:
description: "The name of the bot to send the notification as"
required: false
notifier-discord-enabled:
description: "Whether to send a notification to Discord about the status of the interative inputs form"
default: "false"
required: true
notifier-discord-thread-id:
description: "The ID of the Discord thread the message should be sent to"
required: false
notifier-discord-webhook:
description: "The webhook URL used to send the notification(s) to Discord"
required: true
default: "secret-webhook"
notifier-discord-username:
description: "The username to send the notification(s) as"
required: false
runs:
using: "node20"
main: "invoke-binary.js"