Skip to content

alshakero Checking Calypso Slack Channel Status #6

alshakero Checking Calypso Slack Channel Status

alshakero Checking Calypso Slack Channel Status #6

name: Is Calypso Channel Green?
run-name: ${{ github.actor }} Checking Calypso Slack Channel Status
on:
merge_group:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
Check if Calypso Slack channel is green:

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

View workflow run for this annotation

GitHub Actions / Is Calypso Channel Green?

Invalid workflow file

The workflow is not valid. .github/workflows/is-calypso-channel-green.yml (Line: 10, Col: 3): The identifier 'Check if Calypso Slack channel is green' is invalid. IDs may only contain alphanumeric characters, '_', and '-'. IDs must start with a letter or '_' and and must be less than 100 characters.
runs-on: ubuntu-latest
steps:
- run: |
STATUS=$(curl -s https://public-api.wordpress.com/wpcom/v2/calypso-slack-channel-status --header "Authorization: ${{ secrets.CALYPSO_CHANNEL_STATUS_API_SECRET }}" | xargs)
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
shell: bash