Skip to content

Bump tjenkinson/gh-action-auto-merge-dependency-updates from 4d7756c04d9d999c5968697a621b81c47f533d61 to f1b2bfec5fecc4d554429241f8b10625cfa74d70 #11689

Bump tjenkinson/gh-action-auto-merge-dependency-updates from 4d7756c04d9d999c5968697a621b81c47f533d61 to f1b2bfec5fecc4d554429241f8b10625cfa74d70

Bump tjenkinson/gh-action-auto-merge-dependency-updates from 4d7756c04d9d999c5968697a621b81c47f533d61 to f1b2bfec5fecc4d554429241f8b10625cfa74d70 #11689

name: Repo Freeze Check
# **What it does**: Prevent pull requests from merging during freezes.
# **Why we have it**: Sometimes we need to freeze deployments for various reasons.
# **Who does it impact**: Anyone working on docs.
on:
workflow_dispatch:
pull_request_target:
types:
- opened
- reopened
- synchronize
- ready_for_review
- unlocked
branches:
- main
env:
FREEZE: ${{ secrets.FREEZE }}
jobs:
check-freezer:
if: ${{ github.repository == 'github/docs-internal' || github.repository == 'github/docs' }}
name: Prevent merging during deployment freezes
runs-on: ubuntu-latest
steps:
- name: Fail if repo merges are paused
if: ${{ env.FREEZE == 'true' && github.head_ref != 'repo-sync' }}
run: |
echo 'Merges into the "main" branch on this repo are currently paused!'
exit 1