action-discord-md-publish/action.yml

28 lines
716 B
YAML
Raw Permalink Normal View History

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
storageMethod:
description: |-
Method of storing old message ids to delete
one of:
- none - doesn't store ids of sent messages
- artifact - stores ids in artifact file
2024-02-20 08:26:57 +01:00
- git - stores ids in git repository
default: none
required: true
artifact_retentionDays:
description: |-
if artifact is selected as storageMethod,
number of retentionDays for artifact
2024-02-20 08:26:57 +01:00
runs:
using: node20
main: dist/index.js