Skip to content
This repository has been archived by the owner on Sep 12, 2024. It is now read-only.

Commit

Permalink
chore: updated vars for failing step
Browse files Browse the repository at this point in the history
  • Loading branch information
sandeep-deriv committed Apr 3, 2024
1 parent 1d233dd commit 9e4b838
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
15 changes: 6 additions & 9 deletions .github/actions/send_slack_notifications/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,16 @@ runs:
using: composite
steps:
- name: Send Slack Notification on Success

env:
if: inputs.status == 'success'
uses: 'deriv-com/shared-actions/.github/actions/send_slack_notification@master'
with:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
MESSAGE: 'Release succeeded[staging-test]'
MESSAGE: ${{ inputs.RELEASE_TYPE }} Release succeeded for binary-bot with version ${{ inputs.VERSION }}

- name: Send Slack Notification on Failure
if: inputs.status == 'failure'
run: |
curl -X POST -H 'Content-type: application/json' \
--data '{
"text": "${{ inputs.RELEASE_TYPE }} Release failed for deriv bot with version ${{ inputs.VERSION }}"
}' \
${{ inputs.SLACK_WEBHOOK_URL }}
shell: bash
uses: 'deriv-com/shared-actions/.github/actions/send_slack_notification@master'
with:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK_URL }}
MESSAGE: ${{ inputs.RELEASE_TYPE }} Release failed for binary-bot with version ${{ inputs.VERSION }}
4 changes: 2 additions & 2 deletions .github/workflows/release_staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,5 +61,5 @@ jobs:
with:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
status: ${{ env.WORKFLOW_CONCLUSION }}
release_type: Production
version: 'latest'
release_type: Staging
version: 'latest-master'

0 comments on commit 9e4b838

Please sign in to comment.