From f3ee03e433a211f37a26b5d35ed7a73ca664d918 Mon Sep 17 00:00:00 2001 From: Jan Calanog Date: Mon, 13 Feb 2023 21:17:24 +0100 Subject: [PATCH] Use notify-build-status action --- .github/workflows/smoke-tests.yml | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/.github/workflows/smoke-tests.yml b/.github/workflows/smoke-tests.yml index 5f9a30c9..28c9526d 100644 --- a/.github/workflows/smoke-tests.yml +++ b/.github/workflows/smoke-tests.yml @@ -49,23 +49,10 @@ jobs: with: terraform_version: 1.2.3 - run: make smoketest/run TEST_DIR=./tf - - if: ${{ success() }} - uses: elastic/apm-pipeline-library/.github/actions/slack-message@current + - if: always() + uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current with: - url: ${{ secrets.VAULT_ADDR }} - roleId: ${{ secrets.VAULT_ROLE_ID }} - secretId: ${{ secrets.VAULT_SECRET_ID }} - channel: "#apm-aws-lambda" - message: | - :large_green_circle: [${{ github.repository }}] Smoketests successfully run on ${{ github.ref_name }} - Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>) - - if: ${{ failure() }} - uses: elastic/apm-pipeline-library/.github/actions/slack-message@current - with: - url: ${{ secrets.VAULT_ADDR }} - roleId: ${{ secrets.VAULT_ROLE_ID }} - secretId: ${{ secrets.VAULT_SECRET_ID }} - channel: "#apm-aws-lambda" - message: | - :large_yellow_circle: [${{ github.repository }}] Smoketests failed on ${{ github.ref_name }} - Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>) + vaultUrl: ${{ secrets.VAULT_ADDR }} + vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} + vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} + slackChannel: "#apm-aws-lambda"