2024-02-20 08:26:57 +01:00
|
|
|
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
|
2024-02-21 17:15:21 +01:00
|
|
|
outputFileLocation:
|
|
|
|
description: "Where to write a file containing current message ids for this run"
|
|
|
|
default: "./messageIDs.txt"
|
2024-02-20 08:26:57 +01:00
|
|
|
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
|
2024-02-21 18:03:45 +01:00
|
|
|
- webhook - stores in message sent by another webhook
|
2024-02-20 08:26:57 +01:00
|
|
|
default: none
|
|
|
|
required: true
|
2024-02-21 17:15:21 +01:00
|
|
|
storegeGitFileLocation:
|
|
|
|
description: "Where in git repository file should be saved"
|
2024-02-21 18:03:45 +01:00
|
|
|
storageWebhookUrl:
|
|
|
|
description: "Webhook url used to send and read message containing messageIDs"
|
|
|
|
storageWebhookMessageID:
|
|
|
|
description: "Message ID to read and edit"
|
2024-02-20 08:26:57 +01:00
|
|
|
|
|
|
|
runs:
|
|
|
|
using: node20
|
|
|
|
main: dist/index.js
|