Skip to content

Commit

Permalink
Add merge_group trigger
Browse files Browse the repository at this point in the history
  • Loading branch information
alshakero committed Jul 23, 2024
1 parent 8fb48ff commit cc20aab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/is-calypso-channel-green.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
name: Calypso Channel Status
run-name: ${{ github.actor }} Checking Calypso Slack Channel Status
on: [push]

on:
merge_group:

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
echo $STATUS
if [ "$STATUS" = "GREEN" ]; then
echo "Calypso Slack channel is green."
exit 0
Expand Down

0 comments on commit cc20aab

Please sign in to comment.