Release bump #5
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: Enforce Main-to-Release Merges | |
on: | |
pull_request: | |
# This workflow will run for any PR whose base branch is "release" | |
branches: [release] | |
types: [opened, synchronize, reopened] | |
jobs: | |
check-source-branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check that PR comes from main branch | |
run: | | |
echo "PR head branch: ${{ github.event.pull_request.head.ref }}" | |
if [ "${{ github.event.pull_request.head.ref }}" != "main" ]; then | |
echo "Error: Only PRs originating from the 'main' branch can be merged into 'release'." | |
exit 1 | |
fi |