Skip to content

Commit

Permalink
PR - Created safeguard for future PRs
Browse files Browse the repository at this point in the history
  • Loading branch information
MaelImhof authored Jul 6, 2024
2 parents 886c6d9 + 3b62340 commit bfacd06
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/release-pr-safeguard.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Safeguard for release PRs

on:
pull_request:
branches:
- release

jobs:
restrict-release:
runs-on: ubuntu-latest
steps:
- name: Check PR Base Branch
run: |
if [[ "${{ github.base_ref }}" != "dev" ]]; then
echo "Pull requests to the release branch must come from the dev branch."
exit 1
fi

0 comments on commit bfacd06

Please sign in to comment.