Skip to content
Closed
Changes from all commits
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
24 changes: 24 additions & 0 deletions .github/workflows/deprecated-branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Merge protection against deprecated branches

on:
pull_request:
# Every-time a branch is deprecated it should be added here
branches:
- '1.0'
- '1.1'
- '1.2'
- '1.x'
- '2.0'
- '2.1'
- '2.2'

jobs:
deprecated-branch-check:
runs-on: ubuntu-latest
name: Deprecated Branch Check
steps:
- name: Fail if this workflow is triggered
run: echo -e "\n\nThis PR was created against the branch ${GH_BRANCH##*/} that was deprecated\n\n";
exit 1
env:
GH_BRANCH: ${{ github.ref }}