2024-07-27 19:03:58 +00:00
|
|
|
---
|
2024-07-20 23:40:19 +00:00
|
|
|
name: Post build status to Discord
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
webhook-url:
|
2024-07-25 02:06:14 +00:00
|
|
|
description: "Discord webhook url messages should be sent to."
|
2024-07-20 23:40:19 +00:00
|
|
|
required: true
|
|
|
|
title:
|
2024-07-25 02:06:14 +00:00
|
|
|
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:
|
2024-07-25 02:06:14 +00:00
|
|
|
# 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"
|
2024-07-24 23:34:26 +00:00
|
|
|
message-id:
|
2024-07-25 02:06:14 +00:00
|
|
|
description: "Message ID to post to. If specified, the message will be updated instead of creating a new one."
|
2024-07-24 23:34:26 +00:00
|
|
|
|
|
|
|
outputs:
|
|
|
|
message-id:
|
2024-07-25 02:06:14 +00:00
|
|
|
description: "ID of the message created or edited."
|
2024-07-20 23:40:19 +00:00
|
|
|
|
|
|
|
runs:
|
2024-07-24 23:34:26 +00:00
|
|
|
using: "docker"
|
|
|
|
image: "Dockerfile"
|
|
|
|
args:
|
|
|
|
- ${{ inputs.webhook-url }}
|
|
|
|
- ${{ inputs.status }}
|
|
|
|
- ${{ inputs.variant }}
|
|
|
|
- ${{ inputs.title }}
|
|
|
|
- ${{ inputs.message-id }}
|