Skip to content

Commit

Permalink
Add a runs-on field to the base-branch-check
Browse files Browse the repository at this point in the history
  • Loading branch information
PlasmaPower committed May 12, 2023
1 parent 66cd318 commit a14c417
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/base-branch-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ on:
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"
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

0 comments on commit a14c417

Please sign in to comment.