From dc169c416c9c7c2eaa8ea45ab6ee78db924d7de2 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Wed, 3 Apr 2024 17:45:32 +0800 Subject: [PATCH 1/2] chore: updated vars on prod workflow --- .github/workflows/release_production.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 612a3ddb..27f00203 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -57,11 +57,13 @@ jobs: uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 - name: Create Slack Message id: create_slack_message + env: + WORKFLOW_CONCLUSION: ${{ env.WORKFLOW_CONCLUSION }} 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 From d240820a9514c87938e0ab1943ea5865067112d0 Mon Sep 17 00:00:00 2001 From: Sandeep Date: Thu, 4 Apr 2024 13:23:48 +0800 Subject: [PATCH 2/2] chore: removed env variable --- .github/workflows/release_production.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index 27f00203..a56ff17d 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -57,8 +57,6 @@ jobs: uses: technote-space/workflow-conclusion-action@45ce8e0eb155657ab8ccf346ade734257fd196a5 - name: Create Slack Message id: create_slack_message - env: - WORKFLOW_CONCLUSION: ${{ env.WORKFLOW_CONCLUSION }} run: | 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