From b97793e13e2b979c5b9dbee0d2c6e6943cfa6235 Mon Sep 17 00:00:00 2001 From: Ethan Chiu Date: Wed, 16 Mar 2022 10:11:36 -0700 Subject: [PATCH] Add back slack notification --- .github/workflows/get-go-versions.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/get-go-versions.yml b/.github/workflows/get-go-versions.yml index 43545cc..2a06926 100644 --- a/.github/workflows/get-go-versions.yml +++ b/.github/workflows/get-go-versions.yml @@ -51,7 +51,10 @@ jobs: run: | $pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID" $message = "The following versions of '${{ env.TOOL_NAME }}' are available to upload: ${{ env.TOOL_VERSIONS }}\nLink to the pipeline: $pipelineUrl" - echo "$message" + ./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" ` + -ToolName "${{ env.TOOL_NAME }}" ` + -ImageUrl "https://golang.org/lib/godoc/images/footer-gopher.jpg" ` + -Text "$message" trigger_builds: name: Trigger builds @@ -88,4 +91,7 @@ jobs: run: | $pipelineUrl = "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY/actions/runs/$env:GITHUB_RUN_ID" $message = "The build of the '${{ env.TOOL_NAME }}' detection pipeline failed :progress-error:\nLink to the pipeline: $pipelineUrl" - echo "$message" + ./helpers/get-new-tool-versions/send-slack-notification.ps1 -Url "${{ secrets.SLACK_CHANNEL_URL }}" ` + -ToolName "${{ env.TOOL_NAME }}" ` + -Text "$message" ` + -ImageUrl "https://golang.org/lib/godoc/images/footer-gopher.jpg"