From 82d81082419774272e4a37f37340cfdc1b54826e Mon Sep 17 00:00:00 2001 From: Jim Daniels Wasswa Date: Wed, 10 Jan 2024 13:33:38 +0800 Subject: [PATCH] chore: write to github output instead of github env --- .github/workflows/release_production.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index dd1ea5380..c7d711e4b 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -58,11 +58,9 @@ jobs: 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_ENV - elif ["${{ env.WORKFLOW_CONCLUSION }}" == "failure"]; then - echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_ENV + echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT else - echo "MESSAGE=Unkown outcome" >> $GITHUB_ENV + echo "MESSAGE=${{ env.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