From cc08f1e19d5bbe137f5fac298e6fce94380d9461 Mon Sep 17 00:00:00 2001 From: zjc_he Date: Mon, 10 Jun 2024 12:54:49 +0800 Subject: [PATCH] fix(.drone.yml): fixing .drone.yml --- .drone.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index e2a96af..dc8df54 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,6 +7,9 @@ server: user: drone ssh_key: from_secret: joj3-test +environment: + - 'export ORIG_HOME=$(grep ^${USER}: /etc/passwd |cut -d : -f 6)' + - PATH=$PATH:$ORIG_HOME/.local/bin steps: - name: prepare @@ -27,9 +30,6 @@ steps: - make prepare-test - make test - name: scoreboard - environment: - - 'export ORIG_HOME=$(grep ^${USER}: /etc/passwd |cut -d : -f 6)' - - PATH=$PATH:$ORIG_HOME/.local/bin commands: - if echo "${DRONE_REPO_NAME}" | grep -q '-'; then SUBMITTER_NAME=$(echo "{DRONE_REPO_NAME}" | cut -d'-' -f1); else SUBMITTER_NAME={DRONE_REPO_NAME}; fi