This repository has been archived by the owner on Apr 10, 2024. It is now read-only.
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json | |
name: "Announce New Release - Discord" | |
on: | |
release: | |
types: | |
- "published" | |
jobs: | |
main: | |
name: "Main" | |
runs-on: "ubuntu-latest" | |
steps: | |
- name: "Send Discord Webhook" | |
uses: "hugoalh/send-discord-webhook-ghaction@v6.0.1" | |
with: | |
key: "${{secrets.DISCORD_HXHS_PROJECTNEWRELEASEANNOUNCER_WEBHOOK}}" | |
embeds: | | |
- title: "exFetch (NodeJS)" | |
description: | | |
> ${{github.event.repository.description}} | |
Version ${{github.event.release.name}} (${{github.event.release.tag_name}}) just released! | |
timestamp: "${{github.event.release.published_at}}" | |
color: "#339933" | |
thumbnail: | |
url: "https://i.imgur.com/fxO50cJ.png" | |
author: | |
name: "${{github.event.release.author.login}}" | |
url: "${{github.event.release.author.html_url}}" | |
icon_url: "${{github.event.release.author.avatar_url}}" | |
fields: | |
- name: "GitHub - Release & Changelog" | |
value: "${{github.event.release.html_url}}" | |
inline: false | |
- name: "GitHub - Repository" | |
value: "${{github.event.repository.html_url}}" | |
inline: false | |
- name: "NPM" | |
value: "https://www.npmjs.com/package/@hugoalh/exfetch" | |
inline: false |