Skip to content

Commit 307ee48

Browse files
authored
Use notify-build-status action (#373)
1 parent 027f319 commit 307ee48

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/smoke-tests.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -49,23 +49,10 @@ jobs:
4949
with:
5050
terraform_version: 1.2.3
5151
- run: make smoketest/run TEST_DIR=./tf
52-
- if: ${{ success() }}
53-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
52+
- if: always()
53+
uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
5454
with:
55-
url: ${{ secrets.VAULT_ADDR }}
56-
roleId: ${{ secrets.VAULT_ROLE_ID }}
57-
secretId: ${{ secrets.VAULT_SECRET_ID }}
58-
channel: "#apm-aws-lambda"
59-
message: |
60-
:large_green_circle: [${{ github.repository }}] Smoketests successfully run on ${{ github.ref_name }}
61-
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
62-
- if: ${{ failure() }}
63-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
64-
with:
65-
url: ${{ secrets.VAULT_ADDR }}
66-
roleId: ${{ secrets.VAULT_ROLE_ID }}
67-
secretId: ${{ secrets.VAULT_SECRET_ID }}
68-
channel: "#apm-aws-lambda"
69-
message: |
70-
:large_yellow_circle: [${{ github.repository }}] Smoketests failed on ${{ github.ref_name }}
71-
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)
55+
vaultUrl: ${{ secrets.VAULT_ADDR }}
56+
vaultRoleId: ${{ secrets.VAULT_ROLE_ID }}
57+
vaultSecretId: ${{ secrets.VAULT_SECRET_ID }}
58+
slackChannel: "#apm-aws-lambda"

0 commit comments

Comments
 (0)