ci: get branch name from GITHUB_REF if GITHUB_BASE_REF not available (#24913)

This commit is contained in:
Sagar Vora
2021-03-17 20:03:54 +05:30
committed by GitHub
parent 7645315424
commit 19bb8c1137

View File

@@ -12,7 +12,7 @@ sudo apt install npm
pip install frappe-bench
git clone https://github.com/frappe/frappe --branch "${GITHUB_BASE_REF}" --depth 1
git clone https://github.com/frappe/frappe --branch "${GITHUB_BASE_REF:-${GITHUB_REF##*/}}" --depth 1
bench init --skip-assets --frappe-path ~/frappe --python "$(which python)" frappe-bench
mkdir ~/frappe-bench/sites/test_site
@@ -43,4 +43,4 @@ sed -i 's/redis_socketio:/# redis_socketio:/g' Procfile
bench get-app erpnext "${GITHUB_WORKSPACE}"
bench start &
bench --site test_site reinstall --yes
bench --site test_site reinstall --yes