Skip to content

Commit

Permalink
Wire up the call to the endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed Jul 23, 2024
1 parent 64be0c7 commit d40784b
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/is-calypso-channel-green.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,15 @@ jobs:
CheckCalypsoChannelStatus:
runs-on: ubuntu-latest
steps:
- run: curl https://api.aruljohn.com/ip
- run:
STATUS=$(curl -s https://public-api.wordpress.com/rest/v1.1/internal/calypso-slack-channel)
if [ "$STATUS" = "GREEN" ]; then
echo "Calypso Slack channel is green."
exit 0
elif [ "$STATUS" = "RED" ]; then
echo "Calypso Slack channel is red."
exit 1
else
echo "Calypso Slack channel status is unknown."
exit 1
fi

0 comments on commit d40784b

Please sign in to comment.