A GitHub Action to send Guilded webhook.
Important
- This documentation is v0.1.0 based; To view other version's documentation, please visit the versions list and select the correct version.
- Support attachments/files.
GitHub | |
---|---|
GitHub Actions Runner | ✔️ Docker |
Note
- It is possible to use this action in other methods/ways which not listed in here, however those methods/ways are not officially supported, and should beware maybe cause security issues.
- GitHub:
hugoalh/send-guilded-webhook-ghaction[@{Tag}]
Note
- It is recommended to use this action with tag for immutability.
This action does not request any GitHub token permission.
Almost all of the inputs are optional, but these groups of inputs must be defined:
Legend Description 🔐 Should be an encrypted secret.
🔐 <string>
Guilded webhook key; These syntaxes are acceptable:
- Webhook ID & Token:
{webhook.id}/{webhook.token}
- URL:
https://media.guilded.gg/webhooks/{webhook.id}/{webhook.token}
<string>
Override the default webhook username, maximum 80 characters.
<string>
Override the default webhook avatar, only support URL of HTTP and HTTPS.
<string>
Message content, maximum 2000 characters; Support Guilded Markdown.
<RegExp[]>
Links' regular expressions to prevent Guilded resolve and display matches links in the content
as embed under the message, only support URL of HTTP and HTTPS, separate each value per line.
Examples:
- All:
.+
.png
Image:\.png(?:\?|#|$)
.webp
Image:\.webp(?:\?|#|$)
- Twitch:
twitch\.tv
<object[]>
Message embed rich content, by JSON or YAML with restricted syntaxes, maximum 10 embeds, and maximum 6000 characters for summation from inputs:
embeds[*].title
embeds[*].description
embeds[*].footer.text
embeds[*].author.name
embeds[*].fields[*].name
embeds[*].fields[*].value
<string>
Message embed title, maximum 256 characters; Support Guilded Markdown.
<string>
Message embed description, maximum 4096 characters; Support Guilded Markdown.
<string>
Message embed URL.
<string>
Message embed timestamp, by ISO 8601 format (e.g.: "2011-11-11T11:11:11Z"
).
<number | string = 2105893>
Message embed colour (i.e.: left border's colour of the embed); These syntaxes are acceptable:
- RGB Integer:
{number}
(e.g.:2105893
) - Hex:
#{hex}{hex}{hex}
/#{hex}{hex}{hex}{hex}{hex}{hex}
(e.g.:#0063B1
) - Namespace: (e.g.:
Blue
) - CSS: (e.g.:
rgb(32, 34, 37)
) - Random:
Random
Note
- Alpha channel is not supported.
- General namespace are provided by NPM package
color-name-list
, list maybe change or remove without any notification, it is recommended to use value instead.
<object>
Message embed footer.
<string>
Message embed footer text, maximum 2048 characters; Support Guilded Markdown.
<string>
Message embed footer icon, only support URL of HTTP, HTTPS, and attachments.
<object>
Message embed image.
<string>
Message embed image URL, only support URL of HTTP, HTTPS, and attachments.
<object>
Message embed thumbnail.
<string>
Message embed thumbnail URL, only support URL of HTTP, HTTPS, and attachments.
<object>
Message embed author.
<string>
Message embed author name, maximum 256 characters.
<string>
Message embed author URL.
<string>
Message embed author icon, only support URL of HTTP, HTTPS, and attachments.
<object[]>
Message embed fields, maximum 25 fields.
<string>
Message embed field name, maximum 256 characters; Support Guilded Markdown.
<string>
Message embed field value, maximum 1024 characters; Support Guilded Markdown.
<boolean = false>
Whether the message embed field should display inline.
<string[]>
Message attachments/files, by Glob path or literal path (select by input files_glob
) under the workspace, separate each value per line, maximum 8 MB and 10 files.
<boolean = true>
Whether input files should accept Glob path instead of literal path.
<boolean = true>
Whether to try truncate firstly when inputs are too large.
<string = "...">
Ellipsis mark.
<string = "end">
Ellipsis position.
"end"
: At the end of the string."middle"
: At the middle of the string."start"
: At the start of the string.
<string>
Response content.
<number>
Request status code.
<boolean>
Whether the request was successful.
<string>
Request status text.
- Hello, world!
jobs: job_id: name: "Send Guilded Webhook" runs-on: "ubuntu-latest" steps: - uses: "hugoalh/[email protected]" with: key: "${{secrets.GUILDED_WEBHOOK_KEY}}" content: "Hello, world!"
- GitHub Actions
- Guilded