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'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add 2.0, 2.1, 2.2?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also 1.x

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about 2.3? Is this going to be a new step on every release to append to this list?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2.3 can still get patch releases, only after 2.4 ships would we add this block

- '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 }}