Skip to content

Commit 111345f

Browse files
authored
Branch was updated using the 'autoupdate branch' Actions workflow.
2 parents c9a5f7f + a8a2bbe commit 111345f

3 files changed

Lines changed: 2 additions & 29 deletions

File tree

.github/workflows/repo-freeze-check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
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

.github/workflows/repo-sync-stalls.yml

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,7 @@ on:
55
schedule:
66
- cron: '0 */2 * * *'
77

8-
env:
9-
FREEZE: ${{ secrets.FREEZE }}
10-
118
jobs:
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:
@@ -60,7 +47,7 @@ jobs:
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 }}

.github/workflows/repo-sync.yml

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,10 @@ on:
1111
schedule:
1212
- cron: '*/15 * * * *' # every 15 minutes
1313

14-
env:
15-
FREEZE: ${{ secrets.FREEZE }}
16-
1714
jobs:
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

0 commit comments

Comments
 (0)