mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 09:19:04 -04:00
Trying to fix slack posting bug (#165271)
This commit is contained in:
parent
974b492ab0
commit
991d2cd552
1 changed files with 9 additions and 3 deletions
12
.github/workflows/create-deploy-tag.yml
vendored
12
.github/workflows/create-deploy-tag.yml
vendored
|
@ -51,12 +51,18 @@ jobs:
|
|||
git tag ${TAG_NAME} ${COMMIT}
|
||||
git push origin "refs/tags/${TAG_NAME}"
|
||||
- if: always()
|
||||
name: Post to a Slack channel
|
||||
name: Post Slack message
|
||||
id: slack
|
||||
uses: slackapi/slack-github-action@v1.24.0
|
||||
with:
|
||||
# Channel ID for #kibana-mission-control
|
||||
channel-id: C05NJL80DB8
|
||||
slack-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) || '' }}"
|
||||
channel-id: "C05NJL80DB8"
|
||||
payload: |
|
||||
{
|
||||
"text": >
|
||||
Initiate Serverless Deploy GitHub Workflow: ${{ job.status }}
|
||||
Workflow: https://github.com/elastic/kibana/actions/workflows/create-deploy-tag.yml
|
||||
${{ job.status == 'success' && format('Tag: `{0}`\nCommit: `{1}`', env.TAG_NAME, env.COMMIT) || '' }}
|
||||
}
|
||||
env:
|
||||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue