Branch de test #4
This file contains 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: 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 |