push-status-to-discord-action/action.yml
Marc Cataford 908bfa306a
Some checks failed
/ Static analysis (push) Failing after 10s
/ Dynamic analysis (push) Failing after 3s
ci: add static+dynamic analysis steps on push
fix: yaml linting

fix: python linting

fix: python formatting
2024-07-27 15:46:04 -04:00

33 lines
878 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 }}