31 lines
753 B
YAML
31 lines
753 B
YAML
name: Post build status to Discord
|
|
|
|
inputs:
|
|
webhook-url:
|
|
description: "Discord webhook URL events should be sent to."
|
|
required: true
|
|
title:
|
|
description: "Message title"
|
|
default: "${{github.repository}} (Build #${{github.run_number}})"
|
|
status:
|
|
description: "Status to report."
|
|
required: true
|
|
variant:
|
|
description: "Style to attach to the message element."
|
|
default: "info"
|
|
message-id:
|
|
description: "Message ID to post to."
|
|
|
|
outputs:
|
|
message-id:
|
|
description: "Id of the message created, for later edits."
|
|
|
|
runs:
|
|
using: "docker"
|
|
image: "Dockerfile"
|
|
args:
|
|
- ${{ inputs.webhook-url }}
|
|
- ${{ inputs.status }}
|
|
- ${{ inputs.variant }}
|
|
- ${{ inputs.title }}
|
|
- ${{ inputs.message-id }}
|