mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
GitHub create-deploy-tag workflow: Fix slack posting bug 2
This commit is contained in:
parent
fbbdef8d05
commit
927cb221ad
1 changed files with 10 additions and 6 deletions
16
.github/workflows/create-deploy-tag.yml
vendored
16
.github/workflows/create-deploy-tag.yml
vendored
|
@ -54,10 +54,14 @@ jobs:
|
|||
git push origin "refs/tags/${TAG_NAME}"
|
||||
- name: Post Slack message
|
||||
if: always()
|
||||
uses: elastic/apm-pipeline-library/.github/actions/notify-build-status@current
|
||||
id: slack
|
||||
uses: slackapi/slack-github-action@v1.24.0
|
||||
with:
|
||||
message: "Initiate Serverless Deploy GitHub Workflow: ${{ job.status }}\nWorkflow: https://github.com/elastic/kibana/actions/workflows/create-deploy-tag.yml${{ job.status == 'success' && format('\nTag: `{0}`\nCommit: `{1}`', env.TAG_NAME, env.COMMIT) || '' }}"
|
||||
vaultUrl: ${{ secrets.OBLT_VAULT_ADDR }}
|
||||
vaultRoleId: ${{ secrets.OBLT_VAULT_ROLE_ID }}
|
||||
vaultSecretId: ${{ secrets.OBLT_VAULT_SECRET_ID }}
|
||||
slackChannel: "#kibana-mission-control"
|
||||
# Channel ID for #kibana-mission-control
|
||||
channel-id: "C05NJL80DB8"
|
||||
payload: |
|
||||
{
|
||||
"text": "Initiate Serverless Deploy GitHub Workflow: ${{ job.status }}\nWorkflow: https://github.com/elastic/kibana/actions/workflows/create-deploy-tag.yml${{ job.status == 'success' && format('\nTag: `{0}`\nCommit: `{1}`', env.TAG_NAME, env.COMMIT) || '' }}"
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.DEPLOY_TAGGER_SLACK_WEBHOOK_URL }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue