Skip to content

Commit

Permalink
fix(ci): initialize branchtoclone
Browse files Browse the repository at this point in the history
  • Loading branch information
akurungadam committed Oct 20, 2024
1 parent 85ff679 commit 02ae011
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/helper/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ sudo apt install libcups2-dev redis-server mariadb-client-10.6

pip install frappe-bench

git clone https://github.com/frappe/frappe --branch "$BRANCH_TO_CLONE" --depth 1
branchtoclone=${GITHUB_BASE_REF:-${GITHUB_REF##*/}}

git clone https://github.com/frappe/frappe --branch "${branchtoclone}" --depth 1
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench

mkdir ~/frappe-bench/sites/test_site
Expand Down Expand Up @@ -41,7 +43,7 @@ sed -i 's/socketio:/# socketio:/g' Procfile
sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile

bench get-app payments
bench get-app https://github.com/frappe/erpnext --branch "$BRANCH_TO_CLONE"
bench get-app https://github.com/frappe/erpnext --branch "${branchtoclone}"
bench get-app healthcare "${GITHUB_WORKSPACE}"

bench setup requirements --dev
Expand Down

0 comments on commit 02ae011

Please # to comment.