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 PR Source Branch | |
# | |
#on: | |
# pull_request: | |
# branches: | |
# - main | |
# - master | |
# | |
#jobs: | |
# check-source-branch: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Check PR source branch | |
# run: | | |
# if [[ ! "${{ github.head_ref }}" =~ ^release.* ]]; then | |
# echo "Error: PR source branch must start with 'release'." | |
# exit 1 | |
# fi |