Skip to content

Commit

Permalink
feat: restrict merges to preprod (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
NandyBa authored Dec 18, 2024
1 parent 68dfdcf commit 0d7f8fe
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/branch-check-preprod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Restrict merges to preprod

on:
pull_request:
branches:
- preprod

jobs:
check-branch:
runs-on: ubuntu-latest
steps:
- name: Check if the source branch is develop
run: |
if [ "${{ github.event.pull_request.head.ref }}" != "develop" ]; then
echo "Pull requests to preprod must come from develop branch."
exit 1
fi

0 comments on commit 0d7f8fe

Please sign in to comment.