Skip to content

Commit

Permalink
Forum post, and hopefully github post actions
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 authored Feb 13, 2024
1 parent 940982a commit f0c991b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/on-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,35 @@ jobs:
version: ${{ env.version }}
zipball: ${{ env.zip }}
changelog: ./changelog.md

- name: Update mod topic
uses: Kerbalight/ksp2-forum-post-action@latest
with:
username: ${{ secrets.FORUM_USER }}
password: ${{ secrets.FORUM_PASSWORD }}
forum_topic_url: https://forum.kerbalspaceprogram.com/topic/221179-093-patch-manager/
forum_topic_title: '[{version}] Patch Manager'
spacedock_url: https://spacedock.info/mod/3482/Patch%20Manager
version: ${{ env.version }}
swinfo_path: 'plugin_template/swinfo.json'
changelog: ./changelog.md

- name: Prepare content for discord
shell: bash
run: |
echo -e "## Release v${version}\n" > ./content.md
cat ./changelog.md >> ./content.md
{
echo 'discord_message<<EOF'
cat ./content.md
echo EOF
} >> "$GITHUB_ENV"
- name: Publish update to Discord
uses: tsickert/[email protected]
with:
webhook-url: ${{ secrets.DISCORD_WEBHOOK }}
content: ${{ env.discord_message }}
thread-id: '1171826066692776028'
username: "Patch Manager"
avatar-url: "https://spacedock.info/content/cheese3660_103715/Patch_Manager/thumb_Patch_Manager-1703507804.jpg"

0 comments on commit f0c991b

Please sign in to comment.