workflow invert & simplify logic to put not "" first

This commit is contained in:
alexcrea 2026-02-10 14:26:53 +01:00
parent f13503f873
commit 196392e206
Signed by: alexcrea
GPG key ID: E346CD16413450E3

View file

@ -151,7 +151,7 @@ jobs:
token: ${{ secrets.MODRINTH_TOKEN }}
project: S75Ueiq9
name: ${{ github.event.release.name }}
version: ${{ github.event.release.tag_name }}${{ github.event.release.prerelease == false && '' || '-pre' }}
version: ${{ github.event.release.tag_name }}${{ github.event.release.prerelease && '-pre' || '' }}
loaders: ${{ env.MODRINTH_PLATFORMS }}
game-versions: ${{ env.MODRINTH_VERSIONS }}
channel: ${{ github.event.release.prerelease == false && 'release' || 'beta' }}
@ -165,7 +165,7 @@ jobs:
webhook-url: ${{ secrets.RELEASE_WEBHOOK_URL }}
content: |
${{ github.event.release.prerelease == false && '<@&1338546156325568642>' || '<@&1352296092989001768>' }}
# New ${{ github.event.release.prerelease == false && '' || 'beta' }} version of custom anvil ! <:CustomAnvil:1262550667986342001>([Modrinth](https://modrinth.com/plugin/customanvil), [Hangar](https://hangar.papermc.io/alexcrea/CustomAnvil) and [GitHub](${{ github.event.release.html_url }}) links)
# New ${{ github.event.release.prerelease && 'beta' || '' }} version of custom anvil ! <:CustomAnvil:1262550667986342001>([Modrinth](https://modrinth.com/plugin/customanvil), [Hangar](https://hangar.papermc.io/alexcrea/CustomAnvil) and [GitHub](${{ github.event.release.html_url }}) links)
-# note: automated release. spigot is not uploaded yet.
${{ env.RELEASE_CHANGELOG }}