Skip to content

Commit

Permalink
fix(ci): checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomjeannesson committed Aug 8, 2023
1 parent 4548ba6 commit 7a8d078
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_pull_requets_source_branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
HEAD_REF: ${{ github.head_ref }}
BASE_REF: ${{ github.base_ref }}
run: |
if [ "$HEAD_REF" != "dev" ] && [ "$BASE_REF" == "main" ]; then
if [[ "$HEAD_REF" != "dev" || "$HEAD_REF" != "dev" ]] && [[ "$BASE_REF" == "main" ]]; then
echo "Merge requests to the main branch are only allowed from the dev branch."
exit 1
fi

0 comments on commit 7a8d078

Please sign in to comment.