ci/nightly: stabilize UrlChecker #2830
Workflow file for this run
This file contains hidden or 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: Bors | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, edited] | |
branches: [master] | |
jobs: | |
check_base_branch: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check if PR targets master branch | |
run: | | |
if [ "${{ github.base_ref }}" != "master" ]; then | |
echo "::error::Bors cannot be used for this pull request. Pull request must target the 'master' branch. Current target: ${{ github.base_ref }}. You can ignore this check if the pull request is not a backport." | |
exit 1 | |
else | |
echo "✅ Pull request correctly targets 'master' branch" | |
fi |