From 4822fdc2b26c46d2899e3c5c3dd0589b0a71ea2b Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Wed, 20 Sep 2023 22:10:28 +0200 Subject: [PATCH] updatecli: notify someone else in slack (#36599) --- .ci/bump-elastic-stack-snapshot.yml | 2 ++ .github/workflows/bump-elastic-stack-snapshot.yml | 5 +++++ .github/workflows/bump-golang.yml | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/.ci/bump-elastic-stack-snapshot.yml b/.ci/bump-elastic-stack-snapshot.yml index 0227adfa7bf2..f9060400c3ff 100644 --- a/.ci/bump-elastic-stack-snapshot.yml +++ b/.ci/bump-elastic-stack-snapshot.yml @@ -13,6 +13,8 @@ actions: - backport-skip - build-monitoring - Team:Beats-On-Call + description: | + Generated automatically with {{ requiredEnv "JOB_URL" }} scmid: default scms: diff --git a/.github/workflows/bump-elastic-stack-snapshot.yml b/.github/workflows/bump-elastic-stack-snapshot.yml index 564e1ef5fa3f..f4a2842fa9d0 100644 --- a/.github/workflows/bump-elastic-stack-snapshot.yml +++ b/.github/workflows/bump-elastic-stack-snapshot.yml @@ -9,6 +9,9 @@ on: permissions: contents: read +env: + JOB_URL: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" + jobs: filter: runs-on: ubuntu-latest @@ -34,5 +37,7 @@ jobs: vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} pipeline: ./.ci/bump-elastic-stack-snapshot.yml + notifySlackChannel: "#ingest-notifications" + messageIfFailure: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@update-me-with-the-slack-team-to-be-poked` please look what's going on <${{ env.JOB_URL }}|here>" env: BRANCH: ${{ matrix.branch }} diff --git a/.github/workflows/bump-golang.yml b/.github/workflows/bump-golang.yml index f0cdb0607f9f..7f1fbc4a208a 100644 --- a/.github/workflows/bump-golang.yml +++ b/.github/workflows/bump-golang.yml @@ -24,6 +24,8 @@ jobs: vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} pipeline: ./.ci/bump-golang.yml + notifySlackChannel: "#ingest-notifications" + messageIfFailure: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@update-me-with-the-slack-team-to-be-poked` please look what's going on <${{ env.JOB_URL }}|here>" - uses: elastic/apm-pipeline-library/.github/actions/updatecli@current with: @@ -31,3 +33,5 @@ jobs: vaultRoleId: ${{ secrets.VAULT_ROLE_ID }} vaultSecretId: ${{ secrets.VAULT_SECRET_ID }} pipeline: ./.ci/bump-golang-7.17.yml + notifySlackChannel: "#ingest-notifications" + messageIfFailure: ":traffic_cone: updatecli failed for `${{ github.repository }}@${{ github.ref_name }}`, `@update-me-with-the-slack-team-to-be-poked` please look what's going on <${{ env.JOB_URL }}|here>"