-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
32 lines (30 loc) · 999 Bytes
/
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
name: "Publish markdown to Discord"
description: "Send markdown file to Discord as message using webhook"
inputs:
file:
description: "Which file to send"
required: true
webhook:
description: "Discord webhook url to use"
required: true
outputFileLocation:
description: "Where to write a file containing current message ids for this run"
default: "./messageIDs.txt"
storageMethod:
description: |-
Method of storing old message ids to delete
one of:
- none - doesn't store ids of sent messages
- git - stores ids in git repository
- webhook - stores in message sent by another webhook
default: none
required: true
storegeGitFileLocation:
description: "Where in git repository file should be saved"
storageWebhookUrl:
description: "Webhook url used to send and read message containing messageIDs"
storageWebhookMessageID:
description: "Message ID to read and edit"
runs:
using: node20
main: dist/index.js