-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Trying to fix slack posting bug (#165271)
- Loading branch information
Thomas Watson
authored
Aug 30, 2023
1 parent
974b492
commit 991d2cd
Showing
1 changed file
with
9 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
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 }} |