From 2c5934d481c38e1fab9c5ee2877e95bafd820b26 Mon Sep 17 00:00:00 2001 From: Yair Morgenstern Date: Fri, 16 Jul 2021 10:03:57 +0300 Subject: [PATCH] Don't post patch releases on Discord --- .github/workflows/buildAndDeploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildAndDeploy.yml b/.github/workflows/buildAndDeploy.yml index 9b28c70149..6c36410ba8 100644 --- a/.github/workflows/buildAndDeploy.yml +++ b/.github/workflows/buildAndDeploy.yml @@ -67,7 +67,7 @@ jobs: ./gradlew desktop:zipLinuxFilesForJar; mv desktop/build/libs/Unciv.jar deploy/Unciv.jar - - name: Read release.md and use it as a body of new release + - name: Read release.md and use it as a body of new release. This will fail for patch releases, since they have no readme. continue-on-error: true if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') id: read_release @@ -87,7 +87,8 @@ jobs: - name: Post announcement on Discord continue-on-error: true - if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') + ## On patch releases, don't notify Discord + if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && env.RELEASE_BODY != '' env: DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} uses: Ilshidur/action-discord@0.3.2