Skip to content
name: Calypso Channel Status
run-name: ${{ github.actor }} Checking Calypso Slack Channel Status
on: [push]
jobs:
CheckCalypsoChannelStatus:
runs-on: ubuntu-latest
steps:
- run:
STATUS=$(curl -s https://public-api.wordpress.com/rest/v1.1/internal/calypso-slack-channel --header "Authorization: ${{ secrets.CALYPSO_CHANNEL_STATUS_API_SECRET }}")
echo $STATUS

Check failure on line 10 in .github/workflows/is-calypso-channel-green.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 10
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