diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 308ee49..1bdcf6e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -34,8 +34,8 @@ jobs: - name: Notify uses: appleboy/discord-action@v1.0.0 with: - webhook_id: ${{ github.event.prerelease == 'false' && secrets.DISCORD_RELEASE_WEBHOOK_ID || secrets.DISCORD_WEBHOOK_ID }} - webhook_token: ${{ github.event.prerelease == 'false' && secrets.DISCORD_RELEASE_WEBHOOK_TOKEN || secrets.DISCORD_WEBHOOK_TOKEN }} + webhook_id: ${{ !github.event.prerelease && secrets.DISCORD_RELEASE_WEBHOOK_ID || secrets.DISCORD_WEBHOOK_ID }} + webhook_token: ${{ !github.event.prerelease && secrets.DISCORD_RELEASE_WEBHOOK_TOKEN || secrets.DISCORD_WEBHOOK_TOKEN }} color: "#00FF00" username: "${{ env.PROJECT_NAME }} Release Bot" message: >