Announce mo-glass 1.10.1 update on WurstForum #1
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: Announce Mod Update | |
run-name: Announce ${{ github.event.inputs.mod }} ${{ github.event.inputs.mod_version }} update on WurstForum | |
on: | |
workflow_dispatch: | |
inputs: | |
mod: | |
description: "Mod ID (as it appears in config.toml)" | |
required: true | |
mod_version: | |
description: "Mod version (without v or -MC)" | |
required: true | |
jobs: | |
announce: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
cache: "pip" | |
cache-dependency-path: _scripts/requirements.txt | |
- name: Install dependencies | |
run: | | |
pip install -r _scripts/requirements.txt | |
- name: Run announce_mod_update.py | |
id: announce | |
env: | |
WURSTFORUM_TOKEN: ${{ secrets.WF_BOT_TOKEN }} | |
run: | | |
python _scripts/announce_mod_update.py "${{ github.event.inputs.mod }}" "${{ github.event.inputs.mod_version }}" | |
- name: Write summary | |
run: | | |
echo "Discussion ID: ${{ steps.announce.outputs.discussion_id }}" >> $GITHUB_STEP_SUMMARY | |
echo "Link: <https://wurstforum.net/d/${{ steps.announce.outputs.discussion_id }}>" >> $GITHUB_STEP_SUMMARY |