Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

repo sync #1247

Merged
merged 5 commits into from
Nov 11, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Prevent merging to main branch during repo freezes (#16278)
* Prevent merging to main branch during repo freezes

* Update failure wording to indicate merges are 'paused'

* Clarify the merge pauses are only for the 'main' branch
  • Loading branch information
JamesMGreene authored Nov 11, 2020
commit 2a780be55b9a39dff61fd0d0cdf88e49183de5b7
27 changes: 27 additions & 0 deletions .github/workflows/repo-freeze-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Repo Freeze Check

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
- unlocked
branches:
- main

env:
FREEZE: ${{ secrets.FREEZE }}

jobs:
check-freezer:
name: Prevent merging during deployment freezes
runs-on: ubuntu-latest
steps:

- name: Fail if repo merges are paused
if: ${{ env.FREEZE == 'true' }}
run: |
echo 'Merges into the "main" branch on this repo are currently paused!'
exit 1