diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index 5b44ce0e..521d4842 100644 --- a/.github/workflows/release-artifacts.yml +++ b/.github/workflows/release-artifacts.yml @@ -146,7 +146,7 @@ jobs: echo "RASA_SDK_VERSION=${RASA_SDK_VERSION/refs\/tags\//}" >> $GITHUB_ENV - name: Notify Slack 💬 - if: success() + if: env.IS_TAG_BUILD && success() env: SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ASSISTANT_RELEASE_WEBHOOK }} uses: Ilshidur/action-slack@2.1.0 @@ -154,7 +154,7 @@ jobs: args: "⚡ New *Rasa SDK* version ${{ env.RASA_SDK_VERSION }} has been released! Changelog: https://github.com/RasaHQ/rasa-sdk/blob/${{ env.RASA_SDK_VERSION }}/CHANGELOG.mdx" - name: Notify Slack of Failure ⛔ - if: failure() + if: env.IS_TAG_BUILD && failure() env: SLACK_WEBHOOK: ${{ secrets.SLACK_RELEASE_ASSISTANT_DEV_TRIBE_WEBHOOK }} uses: Ilshidur/action-slack@2.1.0 diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 6a570e7b..6b08b577 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -5,7 +5,6 @@ on: - main - '[0-9]+.[0-9]+.x' types: [closed] - workflow_dispatch: env: COMMIT_EMAIL: sara-tagger@users.noreply.github.com