Skip to content

Commit

Permalink
Add common variables to common.sh (#49)
Browse files Browse the repository at this point in the history
  • Loading branch information
dundargoc authored Nov 11, 2023
1 parent 183bd23 commit 1bc9701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions ci/common/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ require_environment_variable BUILD_DIR "${BASH_SOURCE[0]}" ${LINENO}
CI_TARGET=${CI_TARGET:-$(basename "${0%.sh}")}
GIT_NAME=${GIT_NAME:-marvim}
GIT_EMAIL=${GIT_EMAIL:-marvim@users.noreply.github.com}
DOC_DIR=${DOC_DIR:-${BUILD_DIR}/build/doc}
DOC_REPO=${DOC_REPO:-neovim/doc}
DOC_BRANCH=${DOC_BRANCH:-gh-pages}

git_truncate() {
local branch="${1}"
Expand Down
4 changes: 0 additions & 4 deletions ci/truncate-history.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ source "$BUILD_DIR/ci/common/common.sh"

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

DOC_DIR=${DOC_DIR:-${BUILD_DIR}/build/doc}
DOC_REPO=${DOC_REPO:-neovim/doc}
DOC_BRANCH=${DOC_BRANCH:-gh-pages}

# Trim the https://github.com/neovim/doc/ repository history, else it gets huge
# and slow to clone. We don't care about the history of the `gh-pages` branch.
try_truncate_history() {
Expand Down

0 comments on commit 1bc9701

Please sign in to comment.