From c18c2ac1ac5018a5c471ffc21b4f7199b40f4e92 Mon Sep 17 00:00:00 2001 From: Ethan Chiu Date: Tue, 15 Mar 2022 11:45:08 -0700 Subject: [PATCH] Comment out slack channel posting To unblock future go builds immediately --- .github/workflows/get-go-versions.yml | 32 +++++++++++++-------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/get-go-versions.yml b/.github/workflows/get-go-versions.yml index bd14f8e..b853787 100644 --- a/.github/workflows/get-go-versions.yml +++ b/.github/workflows/get-go-versions.yml @@ -47,14 +47,14 @@ jobs: $gitHubApi.CancelWorkflow("$env:GITHUB_RUN_ID") Start-Sleep -Seconds 60 - - name: Send Slack notification - 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" - ./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" +# - name: Send Slack notification +# 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" +# ./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 runs-on: ubuntu-latest @@ -86,11 +86,11 @@ jobs: with: submodules: true - - name: Send Slack notification if build fails - 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" - ./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" +# - name: Send Slack notification if build fails +# 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" +# ./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"