diff --git a/.github/workflows/slack-port-notify-unhealthy-service.yml b/.github/workflows/slack-port-notify-unhealthy-service.yml index e951696..a04b62b 100644 --- a/.github/workflows/slack-port-notify-unhealthy-service.yml +++ b/.github/workflows/slack-port-notify-unhealthy-service.yml @@ -1,4 +1,4 @@ -name: TEST - IDP notify when service becomes unhealthy +name: Notify when service becomes unhealthy on: workflow_dispatch: @@ -15,6 +15,6 @@ jobs: steps: - name: Send message to Slack env: - SLACK_WEBHOOK_URL: https://hooks.slack.com/services/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 + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} run: | curl -X POST -H 'Content-type: application/json' --data '{"text":"The service ${{ inputs.service_name }} has become unhealthy."}' $SLACK_WEBHOOK_URL