diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 612a3ddb8..a56ff17dd 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -58,10 +58,10 @@ jobs: - name: Create Slack Message id: create_slack_message run: | - if [ "${{ env.WORKFLOW_CONCLUSION }}" == "success" ]; then - echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT + if [ "$WORKFLOW_CONCLUSION" == "success" ]; then + echo "MESSAGE=$RELEASE_TYPE Release succeeded for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT else - echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT + echo "MESSAGE=$RELEASE_TYPE Release failed for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT fi - name: Send Slack Notification uses: ./.github/actions/notify_slack