Bump peter-evans/create-issue-from-file from b4f9ee0a9d4abbfc6986601d9b1a4f8f8e74c77e to c9745f48a1313517b1073cf57acb43cfbcf8751a #350
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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: | |
| pull_request_target: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| - unlocked | |
| branches: | |
| - main | |
| permissions: | |
| contents: none | |
| 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 |