Post Announcement #31
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: Post Announcement | |
on: | |
workflow_dispatch: | |
inputs: | |
date: | |
description: A 'date' compatible string for which all releases should be included in the announcement. | |
required: true | |
type: string | |
jobs: | |
discord: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Python 3.12 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- run: pip3 install requests | |
- name: Get Release Notes | |
run: python ${{ github.workspace }}/get_release_notes.py -d ${{ inputs.date }} -t ${{ github.token }} | |
- name: Publish to Discord | |
uses: tsickert/[email protected] | |
with: | |
webhook-url: ${{ secrets.DISCORD_ANNOUNCEMENT_WEBHOOK_URL }} | |
embed-title: Chaos Mod Release Published! | |
embed-url: ${{ env.URL }} | |
embed-color: 65535 | |
embed-description: | | |
Changelog: | |
${{ env.BODY }} |