push-status-to-discord-action/action.yml

34 lines
878 B
YAML
Raw Permalink Normal View History

---
2024-07-20 23:40:19 +00:00
name: Post build status to Discord
inputs:
webhook-url:
description: "Discord webhook url messages should be sent to."
2024-07-20 23:40:19 +00:00
required: true
title:
description: "Discord message title."
2024-07-20 23:40:19 +00:00
default: "${{github.repository}} (Build #${{github.run_number}})"
status:
description: "Status to report."
required: true
variant:
# See main.py for pre-defined variants.
2024-07-20 23:40:19 +00:00
description: "Style to attach to the message element."
default: "info"
message-id:
description: "Message ID to post to. If specified, the message will be updated instead of creating a new one."
outputs:
message-id:
description: "ID of the message created or edited."
2024-07-20 23:40:19 +00:00
runs:
using: "docker"
image: "Dockerfile"
args:
- ${{ inputs.webhook-url }}
- ${{ inputs.status }}
- ${{ inputs.variant }}
- ${{ inputs.title }}
- ${{ inputs.message-id }}