Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on May 13, 2024. It is now read-only.

Commit c25449a

Browse files
Merge pull request #279 from jim-deriv/fix-production-release-notification
[FEQ] Jim/write to github output instead of github env
2 parents 70c08ef + 82d8108 commit c25449a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/release_production.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ jobs:
5858
id: create_slack_message
5959
run: |
6060
if [ "${{ env.WORKFLOW_CONCLUSION }}" == "success" ]; then
61-
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_ENV
62-
elif ["${{ env.WORKFLOW_CONCLUSION }}" == "failure"]; then
63-
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_ENV
61+
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release succeeded for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT
6462
else
65-
echo "MESSAGE=Unkown outcome" >> $GITHUB_ENV
63+
echo "MESSAGE=${{ env.RELEASE_TYPE }} Release failed for api.deriv.com with version *${{ needs.build_and_publish.outputs.RELEASE_VERSION }}*" >> $GITHUB_OUTPUT
6664
fi
6765
- name: Send Slack Notification
6866
uses: ./.github/actions/notify_slack

0 commit comments

Comments
 (0)