From 59f87f0e8a2f2a8d000141e1bd57bab56ad38b4c Mon Sep 17 00:00:00 2001 From: Grey Barkans Date: Tue, 30 Jan 2024 17:31:31 -0500 Subject: [PATCH 1/3] chore(binary build): slack alert Resolves: #2533 --- .github/workflows/release.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3f2d4609b..723aa3c2c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -56,6 +56,15 @@ jobs: name: dist-${{ matrix.target }} path: ./target/dist/ + - name: Post to slack + uses: slackapi/slack-github-action@v1.24.0 + if: ${{ always() }} + with: + payload: | + { + "text": "Binary build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + } + publish: name: Publish runs-on: ubuntu-latest @@ -92,5 +101,5 @@ jobs: with: payload: | { - "text": "Release binary build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + "text": "Publish binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } From 50bd963d6f6fad498642bea8b30303723a42c84e Mon Sep 17 00:00:00 2001 From: Grey Date: Tue, 30 Jan 2024 17:33:29 -0500 Subject: [PATCH 2/3] Apply suggestions from code review --- .github/workflows/release.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 723aa3c2c..aae66e223 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,7 +62,7 @@ jobs: with: payload: | { - "text": "Binary build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + "text": "Build release binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } publish: @@ -101,5 +101,5 @@ jobs: with: payload: | { - "text": "Publish binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + "text": "Publish release binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } From 48081d7eda1bbe017b637ffa107897d659666637 Mon Sep 17 00:00:00 2001 From: Grey Barkans Date: Tue, 30 Jan 2024 17:35:20 -0500 Subject: [PATCH 3/3] fixup! chore(binary build): slack alert --- .github/workflows/release.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index aae66e223..a00e65e0c 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -62,7 +62,7 @@ jobs: with: payload: | { - "text": "Build release binary result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" + "text": "Build release binary result (${{ matrix.target }}): ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" } publish: