We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64be0c7 commit d40784bCopy full SHA for d40784b
.github/workflows/is-calypso-channel-green.yml
@@ -5,4 +5,15 @@ jobs:
5
CheckCalypsoChannelStatus:
6
runs-on: ubuntu-latest
7
steps:
8
- - run: curl https://api.aruljohn.com/ip
+ - run:
9
+ STATUS=$(curl -s https://public-api.wordpress.com/rest/v1.1/internal/calypso-slack-channel)
10
+ if [ "$STATUS" = "GREEN" ]; then
11
+ echo "Calypso Slack channel is green."
12
+ exit 0
13
+ elif [ "$STATUS" = "RED" ]; then
14
+ echo "Calypso Slack channel is red."
15
+ exit 1
16
+ else
17
+ echo "Calypso Slack channel status is unknown."
18
19
+ fi
0 commit comments