From 0a9029fd23a089f3a9b98c960098ef57a1660185 Mon Sep 17 00:00:00 2001 From: Kevin Heis Date: Wed, 6 Dec 2023 17:02:55 -0800 Subject: [PATCH] Delete repo-freeze-check.yml (#46926) --- .github/workflows/repo-freeze-check.yml | 46 ------------------------- 1 file changed, 46 deletions(-) delete mode 100644 .github/workflows/repo-freeze-check.yml diff --git a/.github/workflows/repo-freeze-check.yml b/.github/workflows/repo-freeze-check.yml deleted file mode 100644 index 79bee9b44f..0000000000 --- a/.github/workflows/repo-freeze-check.yml +++ /dev/null @@ -1,46 +0,0 @@ -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: - merge_group: - # Needed in lieu of `pull_request` so that PRs from a fork can stopped from merging when there's a freeze. - pull_request_target: - types: - - opened - - reopened - - synchronize - - ready_for_review - - unlocked - branches: - - main - -permissions: - contents: read - -# **IMPORTANT:** Do not change the FREEZE environment variable set here! -# This workflow runs on a recurring basis. To temporarily disable it (e.g., -# during a docs deployment freeze), add an Actions Secret to the repo settings -# called `FREEZE` with a value of `true`. To re-enable Audit Logs updates, simply -# delete that Secret from the repo settings. The environment variable here -# will duplicate that Secret's value for later evaluation. -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: Check out repo - uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # v4.0.0 - - - name: Fail if repo merges are paused - if: ${{ env.FREEZE == 'true' && github.event.pull_request.user.login != 'docs-bot' }} - run: | - echo 'Merges into the "main" branch on this repo are currently paused!' - exit 1