File tree Expand file tree Collapse file tree 3 files changed +39
-5
lines changed Expand file tree Collapse file tree 3 files changed +39
-5
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ module.exports = [
31
31
'rachmari/actions-add-new-issue-to-column@1a459ef92308ba7c9c9dc2fcdd72f232495574a9' ,
32
32
'rachmari/labeler@832d42ec5523f3c6d46e8168de71cd54363e3e2e' ,
33
33
'repo-sync/github-sync@3832fe8e2be32372e1b3970bbae8e7079edeec88' ,
34
- 'repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7 ' ,
34
+ 'repo-sync/pull-request@58af525d19d3c2b4f744d3348c6823b6340a4921 ' ,
35
35
'rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815' ,
36
36
'tjenkinson/gh-action-auto-merge-dependency-updates@cee2ac0'
37
37
]
Original file line number Diff line number Diff line change
1
+ name : Repo Freeze Reminders
2
+
3
+ on :
4
+ schedule :
5
+ - cron : " 00 11 * * *" # once per day around 11:00am UTC
6
+
7
+ env :
8
+ FREEZE : ${{ secrets.FREEZE }}
9
+
10
+ jobs :
11
+ check-freezer :
12
+ name : Remind about deployment freezes
13
+ runs-on : ubuntu-latest
14
+ steps :
15
+
16
+ - name : Send Slack notification if repo is frozen
17
+ if : ${{ env.FREEZE == 'true' }}
18
+ uses : rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
19
+ env :
20
+ SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
21
+ SLACK_USERNAME : docs-repo-sync
22
+ SLACK_ICON_EMOJI : ' :freezing_face:'
23
+ SLACK_COLOR : ' #51A0D5' # Carolina Blue
24
+ SLACK_MESSAGE : All repo-sync runs will fail for ${{ github.repository }} because the repo is currently frozen!
Original file line number Diff line number Diff line change 14
14
FREEZE : ${{ secrets.FREEZE }}
15
15
16
16
jobs :
17
- repo-sync :
18
- name : Repo Sync
17
+ check-freezer :
18
+ name : Check for deployment freezes
19
19
runs-on : ubuntu-latest
20
20
steps :
21
21
25
25
echo 'The repo is currently frozen! Exiting this workflow.'
26
26
exit 1 # prevents further steps from running
27
27
28
+ repo-sync :
29
+ name : Repo Sync
30
+ needs : check-freezer
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+
28
34
- name : Check out repo
29
35
uses : actions/checkout@a81bbbf8298c0fa03ea29cdc473d45769f953675
30
36
39
45
github_token : ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
40
46
41
47
- name : Create pull request
42
- uses : repo-sync/pull-request@ea6773388b83b337e4da9a223293309f2c3670e7
48
+ uses : repo-sync/pull-request@58af525d19d3c2b4f744d3348c6823b6340a4921
43
49
env :
44
50
GITHUB_TOKEN : ${{ secrets.OCTOMERGER_PAT_WITH_REPO_AND_WORKFLOW_SCOPE }}
45
51
with :
56
62
with :
57
63
github-token : ${{ secrets.GITHUB_TOKEN }}
58
64
branch : repo-sync
65
+ base : main
59
66
60
67
- name : Approve pull request
61
68
if : ${{ steps.find-pull-request.outputs.number }}
66
73
67
74
- name : Send Slack notification if workflow fails
68
75
uses : rtCamp/action-slack-notify@e17352feaf9aee300bf0ebc1dfbf467d80438815
69
- if : failure()
76
+ if : ${{ failure() }}
70
77
env :
71
78
SLACK_WEBHOOK : ${{ secrets.DOCS_ALERTS_SLACK_WEBHOOK }}
79
+ SLACK_USERNAME : docs-repo-sync
80
+ SLACK_ICON_EMOJI : ' :ohno:'
81
+ SLACK_COLOR : ' #B90E0A' # Crimson
72
82
SLACK_MESSAGE : The last repo-sync run for ${{github.repository}} failed. See https://github.com/${{github.repository}}/actions?query=workflow%3A%22Repo+Sync%22
You can’t perform that action at this time.
0 commit comments