mirror of
https://github.com/VSCodium/vscodium.git
synced 2024-11-26 09:04:50 +03:00
20 lines
604 B
Bash
Executable File
20 lines
604 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
# git workaround
|
|
if [[ "${CI_BUILD}" != "no" ]]; then
|
|
git config --global --add safe.directory "/__w/$( echo "${GITHUB_REPOSITORY}" | awk '{print tolower($0)}' )"
|
|
fi
|
|
|
|
if [[ -n "${PULL_REQUEST_ID}" ]]; then
|
|
BRANCH_NAME=$( git rev-parse --abbrev-ref HEAD )
|
|
|
|
git config --global user.email "$( echo "${GITHUB_USERNAME}" | awk '{print tolower($0)}' )-ci@not-real.com"
|
|
git config --global user.name "${GITHUB_USERNAME} CI"
|
|
git fetch --unshallow
|
|
git fetch origin "pull/${PULL_REQUEST_ID}/head"
|
|
git checkout FETCH_HEAD
|
|
git merge --no-edit "origin/${BRANCH_NAME}"
|
|
fi
|