GitHub Releases to discord prerelease #2
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
name: GitHub Releases to discord prerelease | |
on: | |
release: | |
types: [prereleased] | |
jobs: | |
github-releases-to-discord: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.ref }} | |
- name: Sleep for 1 hour to wait for release artifacts to be published before putting out Discord notification | |
run: | | |
echo "GITHUB_TAG=${GITHUB_REF_NAME}" >> $GITHUB_ENV | |
sleep 3600s | |
shell: bash | |
- name: Github Releases To Discord | |
uses: SethCohen/[email protected] | |
with: | |
webhook_url: ${{ secrets.WEBHOOK_URL }} | |
color: "2105893" | |
username: "Release Changelog" | |
avatar_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" | |
content: "||A wild prerelease has appeared at https://github.com/streetpea/chiaki-ng/releases/tag/${{ env.GITHUB_TAG }}||" | |
footer_title: "Changelog" | |
footer_icon_url: "https://cdn.discordapp.com/avatars/487431320314576937/bd64361e4ba6313d561d54e78c9e7171.png" | |
footer_timestamp: true | |
max_description: '4096' | |
reduce_headings: true |