Skip to content

Commit

Permalink
Update verifyFreezePeriod.yml to ignore milestone promotions
Browse files Browse the repository at this point in the history
  • Loading branch information
sratz authored and HannesWell committed Jul 7, 2024
1 parent ccfa1cf commit 666f457
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/verifyFreezePeriod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
calId="[email protected]"
calURL="https://clients6.google.com/calendar/v3/calendars/group.calendar.google.com/events?calendarId=${calId}&singleEvents=true&timeZone=UTC&maxResults=250&sanitizeHtml=true&timeMin=${today}T00:00:00Z&timeMax=${tomorrow}T00:00:00Z&key=AIzaSyBNlYH01_9Hc5S1J9vuFmu2nUqBZJNAXxs"
echo "Querying calendar https://calendar.google.com/calendar/u/0/embed?src=${calId}"
curl "${calURL}" | grep -i -e "stabilization" -e "signoff" -e "promotion"
curl "${calURL}" | grep -i -P '(stabilization|signoff|(?<!M\d) promotion)'
if [[ $? == 0 ]]; then
echo "::error::Today is a freeze day"
exit 1 #Exiting with non-0 makes this workflow fail
Expand Down

0 comments on commit 666f457

Please sign in to comment.