ci: get branch name from GITHUB_REF if GITHUB_BASE_REF not available (#24913)
This commit is contained in:
parent
7645315424
commit
19bb8c1137
4
.github/helper/install.sh
vendored
4
.github/helper/install.sh
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user