diff --git a/.github/helper/install.sh b/.github/helper/install.sh index 49a3ace1b7..0d434cd088 100644 --- a/.github/helper/install.sh +++ b/.github/helper/install.sh @@ -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 @@ -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