forked from github/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
27 lines (23 loc) · 982 Bytes
/
repo-freeze-reminders.yml
File metadata and controls
27 lines (23 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Repo Freeze Reminders
# **What it does**: This reminds us that the repository is frozen for deploys.
# **Why we have it**: To remind us to turn off the freeze after the freeze period is over.
# **Who does it impact**: Docs engineering.
on:
schedule:
- cron: '9 11 * * *' # once per day around 11:09am UTC
env:
FREEZE: ${{ secrets.FREEZE }}
jobs:
check-freezer:
name: Remind about deployment freezes
runs-on: ubuntu-latest
if: github.repository == 'github/docs-internal'
steps:
- name: Send Slack notification if repo is frozen
uses: someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
if: ${{ env.FREEZE == 'true' }}
with:
channel: ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
bot-token: ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
color: info
text: All repo-sync runs will fail for ${{ github.repository }} because the repo is currently frozen!