From c9cab459a5f64a3718cb768b729b84b452323b10 Mon Sep 17 00:00:00 2001 From: smanhoff Date: Wed, 17 Jul 2024 14:47:52 +0200 Subject: [PATCH] Test IDP workflow --- .../slack-port-notify-unhealthy-service.yml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/slack-port-notify-unhealthy-service.yml diff --git a/.github/workflows/slack-port-notify-unhealthy-service.yml b/.github/workflows/slack-port-notify-unhealthy-service.yml new file mode 100644 index 0000000..e951696 --- /dev/null +++ b/.github/workflows/slack-port-notify-unhealthy-service.yml @@ -0,0 +1,20 @@ +name: TEST - IDP notify when service becomes unhealthy + +on: + workflow_dispatch: + inputs: + # Note that the input is the same as the payload (workflowInputs) defined in the automation + service_name: + description: "The unhealthy service's name" + required: true + type: string + +jobs: + send_message: + runs-on: ubuntu-latest + steps: + - name: Send message to Slack + env: + SLACK_WEBHOOK_URL: https://hooks.slack.com/services/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 + run: | + curl -X POST -H 'Content-type: application/json' --data '{"text":"The service ${{ inputs.service_name }} has become unhealthy."}' $SLACK_WEBHOOK_URL