-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
1 parent
c0b82d5
commit f2b1d77
Showing
8 changed files
with
115 additions
and
6 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
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
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
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
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
description: | | ||
Send a custom notification using Slack's Block Kit Builder. | ||
Create the payload code and paste it in your notify command's custom parameter. | ||
Detailed instructions in the GitHub readme. | ||
https://app.slack.com/block-kit-builder | ||
usage: | ||
version: 2.1 | ||
orbs: | ||
slack: circleci/[email protected] | ||
jobs: | ||
scheduled_notify: | ||
docker: | ||
- image: cimg/base:stable | ||
steps: | ||
- slack/notify: | ||
event: always | ||
scheduled_offset_seconds: 30 # 30 seconds after the job starts | ||
custom: | | ||
{ | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"fields": [ | ||
{ | ||
"type": "plain_text", | ||
"text": "*This is a scheduled text notification*", | ||
"emoji": true | ||
} | ||
] | ||
} | ||
] | ||
} | ||
workflows: | ||
send-notification: | ||
jobs: | ||
- scheduled_notify: | ||
context: slack-secrets |
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
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
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#!/bin/false | ||
# shellcheck shell=sh | ||
# shellcheck shell=bash | ||
# shellcheck disable=SC2154 | ||
|
||
detect_os() { | ||
|