Skip to content

Commit e34d8a5

Browse files
authored
github-actions: slack with GitHub secrets (#258)
1 parent 692f9f0 commit e34d8a5

File tree

3 files changed

+10
-16
lines changed

3 files changed

+10
-16
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,22 +103,18 @@ jobs:
103103
subject-path: "${{ github.workspace }}/**/target/*.jar"
104104

105105
- if: ${{ success() }}
106-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
106+
uses: elastic/oblt-actions/slack/[email protected]
107107
with:
108-
url: ${{ secrets.VAULT_ADDR }}
109-
roleId: ${{ secrets.VAULT_ROLE_ID }}
110-
secretId: ${{ secrets.VAULT_SECRET_ID }}
111-
channel: "#apm-agent-java"
108+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
109+
channel-id: "#apm-agent-java"
112110
message: |
113111
:runner: [${{ github.repository }}] Release *${{ github.ref_name }}* has been triggered in Buildkite: (<${{ steps.buildkite.outputs.build }}|build>)
114112
115113
- if: ${{ failure() }}
116-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
114+
uses: elastic/oblt-actions/slack/[email protected]
117115
with:
118-
url: ${{ secrets.VAULT_ADDR }}
119-
roleId: ${{ secrets.VAULT_ROLE_ID }}
120-
secretId: ${{ secrets.VAULT_SECRET_ID }}
121-
channel: "#apm-agent-java"
116+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
117+
channel-id: "#apm-agent-java"
122118
message: |
123119
:ghost: [${{ github.repository }}] Release *${{ github.ref_name }}* didn't get triggered in Buildkite.
124120
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)

.github/workflows/snapshot.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,10 @@ jobs:
7373
subject-path: "${{ github.workspace }}/**/target/*.jar"
7474

7575
- if: ${{ failure() }}
76-
uses: elastic/apm-pipeline-library/.github/actions/slack-message@current
76+
uses: elastic/oblt-actions/slack/[email protected]
7777
with:
78-
url: ${{ secrets.VAULT_ADDR }}
79-
roleId: ${{ secrets.VAULT_ROLE_ID }}
80-
secretId: ${{ secrets.VAULT_SECRET_ID }}
81-
channel: "#apm-agent-java"
78+
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
79+
channel-id: "#apm-agent-java"
8280
message: |
8381
:ghost: [${{ github.repository }}] Snapshot *${{ github.ref_name }}* didn't get triggered in Buildkite.
8482
Build: (<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|here>)

.github/workflows/update-specs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
GITHUB_TOKEN: ${{ secrets.UPDATECLI_GH_TOKEN }}
2525

2626
- if: failure()
27-
uses: elastic/oblt-actions/slack/send@v1
27+
uses: elastic/oblt-actions/slack/send@v1.2.0
2828
with:
2929
bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
3030
channel-id: "#apm-agent-java"

0 commit comments

Comments
 (0)