Skip to content

Commit d40784b

Browse files
committed
Wire up the call to the endpoint
1 parent 64be0c7 commit d40784b

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

.github/workflows/is-calypso-channel-green.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,15 @@ jobs:
55
CheckCalypsoChannelStatus:
66
runs-on: ubuntu-latest
77
steps:
8-
- run: curl https://api.aruljohn.com/ip
8+
- 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+
exit 1
19+
fi

0 commit comments

Comments
 (0)