Skip to content

Commit 1b9fb1e

Browse files
committed
Add common variables to common.sh
1 parent 183bd23 commit 1b9fb1e

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

ci/common/common.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}
3030
CI_TARGET=${CI_TARGET:-$(basename "${0%.sh}")}
3131
GIT_NAME=${GIT_NAME:-marvim}
3232
GIT_EMAIL=${GIT_EMAIL:-marvim@users.noreply.github.com}
33+
DOC_DIR=${DOC_DIR:-${BUILD_DIR}/build/doc}
34+
DOC_REPO=${DOC_REPO:-neovim/doc}
35+
DOC_BRANCH=${DOC_BRANCH:-gh-pages}
3336

3437
git_truncate() {
3538
local branch="${1}"

ci/truncate-history.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ source "$BUILD_DIR/ci/common/common.sh"
77

88
require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}
99

10-
DOC_DIR=${DOC_DIR:-${BUILD_DIR}/build/doc}
11-
DOC_REPO=${DOC_REPO:-neovim/doc}
12-
DOC_BRANCH=${DOC_BRANCH:-gh-pages}
13-
1410
# Trim the https://github.com/neovim/doc/ repository history, else it gets huge
1511
# and slow to clone. We don't care about the history of the `gh-pages` branch.
1612
try_truncate_history() {

0 commit comments

Comments
 (0)