Revert "fix: L1 reference block drift invariant" #87
Workflow file for this run
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: CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
jobs: | |
base_branch_check: | |
name: Pull request base branch check | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check the pull request base branch | |
run: | | |
if [[ "$GITHUB_BASE_REF" == "main" ]] && [[ "$GITHUB_HEAD_REF" != "develop" ]] && [[ "$GITHUB_HEAD_REF" != hotfix* ]]; then | |
echo -e '\x1b[31mPull requests targeting the main branch must be from the develop branch or a branch name starting with "hotfix".\x1b[0m' | |
exit 1 | |
fi |