Skip to content

Commit

Permalink
ci: failfast when merge conflict exists (#30823) (#30824)
Browse files Browse the repository at this point in the history
[skip ci]

(cherry picked from commit 3ae9fa9)

Co-authored-by: Ankush Menat <ankush@frappe.io>
  • Loading branch information
mergify[bot] and ankush authored Apr 27, 2022
1 parent 3cdbb65 commit b45db34
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

set -e

# Check for merge conflicts before proceeding
python -m compileall -f "${GITHUB_WORKSPACE}"
if grep -lr --exclude-dir=node_modules "^<<<<<<< " "${GITHUB_WORKSPACE}"
then echo "Found merge conflicts"
exit 1
fi

cd ~ || exit

sudo apt-get install redis-server libcups2-dev
Expand Down

0 comments on commit b45db34

Please sign in to comment.