Skip to content

Commit

Permalink
Update pre-commmand
Browse files Browse the repository at this point in the history
Signed-off-by: Alexandros Sapranidis <[email protected]>
  • Loading branch information
alexsapran committed Jul 26, 2023
1 parent 22131c3 commit 6f43ad8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .buildkite/hooks/pre-command
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,12 @@

set -euo pipefail

source ../scripts/common.sh
if [[ -z "${WORKSPACE-""}" ]]; then
WORKSPACE=$(git rev-parse --show-toplevel)
export WORKSPACE
fi

source "${WORKSPACE}/.buildkite/scripts/common.sh"

if [[ -z "${GO_VERSION-""}" ]]; then
export GO_VERSION=$(cat "${WORKSPACE}/.go-version")
Expand Down

0 comments on commit 6f43ad8

Please sign in to comment.