File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2222 runs-on : ubuntu-latest
2323 steps :
2424 - name : Fail if repo merges are paused
25- if : ${{ env.FREEZE == 'true' }}
25+ if : ${{ env.FREEZE == 'true' && github.ref != 'refs/heads/repo-sync' }}
2626 run : |
2727 echo 'Merges into the "main" branch on this repo are currently paused!'
2828 exit 1
Original file line number Diff line number Diff line change 55 schedule :
66 - cron : ' 0 */2 * * *'
77
8- env :
9- FREEZE : ${{ secrets.FREEZE }}
10-
118jobs :
12- check-freezer :
13- name : Check for deployment freezes
14- runs-on : ubuntu-latest
15- steps :
16- - name : Exit if repo is frozen
17- if : ${{ env.FREEZE == 'true' }}
18- run : |
19- echo 'The repo is currently frozen! Exiting this workflow.'
20- exit 1 # prevents further steps from running
21-
229 repo-sync-stalls :
2310 runs-on : ubuntu-latest
2411 steps :
6047 })
6148 - name : Send Slack notification if workflow fails
6249 uses : someimportantcompany/github-actions-slack-message@0b470c14b39da4260ed9e3f9a4f1298a74ccdefd
63- if : ${{ failure() && env.FREEZE != 'true' }}
50+ if : ${{ failure() }}
6451 with :
6552 channel : ${{ secrets.DOCS_ALERTS_SLACK_CHANNEL_ID }}
6653 bot-token : ${{ secrets.SLACK_DOCS_BOT_TOKEN }}
Original file line number Diff line number Diff line change 1111 schedule :
1212 - cron : ' */15 * * * *' # every 15 minutes
1313
14- env :
15- FREEZE : ${{ secrets.FREEZE }}
16-
1714jobs :
18- check-freezer :
19- name : Check for deployment freezes
20- runs-on : ubuntu-latest
21- steps :
22- - name : Exit if repo is frozen
23- if : ${{ env.FREEZE == 'true' }}
24- run : |
25- echo 'The repo is currently frozen! Exiting this workflow.'
26- exit 1 # prevents further steps from running
27-
2815 repo-sync :
2916 if : github.repository == 'github/docs-internal' || github.repository == 'github/docs'
3017 name : Repo Sync
31- needs : check-freezer
3218 runs-on : ubuntu-latest
3319 steps :
3420 - name : Check out repo
You can’t perform that action at this time.
0 commit comments