32 lines
874 B
YAML
32 lines
874 B
YAML
name: Post build status to Discord
|
|
|
|
inputs:
|
|
webhook-url:
|
|
description: "Discord webhook url messages should be sent to."
|
|
required: true
|
|
title:
|
|
description: "Discord message title."
|
|
default: "${{github.repository}} (Build #${{github.run_number}})"
|
|
status:
|
|
description: "Status to report."
|
|
required: true
|
|
variant:
|
|
# See main.py for pre-defined variants.
|
|
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."
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- ${{ inputs.webhook-url }}
|
|
- ${{ inputs.status }}
|
|
- ${{ inputs.variant }}
|
|
- ${{ inputs.title }}
|
|
- ${{ inputs.message-id }}
|