Skip to content

Refactor Discord notifications workflow #6

Refactor Discord notifications workflow

Refactor Discord notifications workflow #6

Workflow file for this run

- name: Actions Status Discord

Check failure on line 1 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

(Line: 1, Col: 13): A sequence was not expected
# You may pin to the exact commit or the version.
# uses: sarisia/actions-status-discord@11a0bfe3b50977e38aa2bd4a4ebd296415e83c19
uses: sarisia/actions-status-discord@v1.15.4
with:
# Discord webhook endpoint. If not set, env.DISCORD_WEBHOOK will be used.
webhook: {{ secrets.DISCORD_WEBHOOK }}
# Job status. Should be bound to job.status. Default to success.
status: # optional, default is ${{ job.status }}
# Deprecated. Job name included in message title. Same as title input.
job: # optional
# Content. Shown as an message outside of the embed. See [Mention to user/role](#mention-to-user-role)
content: # optional
# String included in embed title. Overrides job input.
title: # optional, default is ${{ github.workflow }}
# Description included in message
description: # optional
# Image attached to the message
image: # optional
# Overrides Discord embed color
color: # optional
# URL to jump when the title is clicked
url: # optional
# Overrides Discord webhook username
username: # optional
# Overrides Discord webhook avatar url
avatar_url: # optional
# This action won't make workflow failed by default.
nofail: # optional, default is true
# Suppress GitHub context fields
nocontext: # optional, default is false
# Avoid appending job status to title
noprefix: # optional, default is false
# Suppress detailed embed fields
nodetail: # optional, default is false
# Avoid appending timestamp
notimestamp: # optional, default is false
# Suppress error which raised when webhook is not set
ack_no_webhook: # optional, default is false