From cc95cc12e704cb0f8f85b2d47c0f57ec5aa27d1d Mon Sep 17 00:00:00 2001 From: Asad Hasan Date: Thu, 29 Aug 2024 09:40:44 +0100 Subject: [PATCH] ENG-1235: Enable triggering release-tagging workflow manually on-demand also (#1142) * ENG-1235: Enable triggering release-tagging workflow manually on-demand also, in case previous auto-run(s) had failed * ENG-1235: Addressed PR feedback to update slack notification trigger condition, to not check for tag-build --- .github/workflows/release-artifacts.yml | 4 ++-- .github/workflows/tag-release.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release-artifacts.yml b/.github/workflows/release-artifacts.yml index 521d4842..5b44ce0e 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: env.IS_TAG_BUILD && success() + if: 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: env.IS_TAG_BUILD && failure() + if: 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 6b08b577..6a570e7b 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -5,6 +5,7 @@ on: - main - '[0-9]+.[0-9]+.x' types: [closed] + workflow_dispatch: env: COMMIT_EMAIL: sara-tagger@users.noreply.github.com