Skip to content

Commit 82e61d0

Browse files
committed
fix(ci): export KALISIO_DEVELOPMENT_DIR, this variable will be used in release-chart.sh or release-dev-chart.sh
1 parent 125b96d commit 82e61d0

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

scripts/setup_workspace.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ WORKSPACE_DIR="$(dirname "$ROOT_DIR")"
2626

2727
. "$THIS_DIR/kash/kash.sh"
2828

29-
## Parse options
29+
## Parse options
3030
##
3131
begin_group "Setting up workspace ..."
3232

@@ -56,6 +56,15 @@ if [ "$CI" != true ]; then
5656
fi
5757
fi
5858

59+
# Export KALISIO_DEVELOPMENT_DIR required by release-chart.sh and release-dev-chart.sh
60+
# to locate the decrypted rclone config (rclone.dec.conf)
61+
export KALISIO_DEVELOPMENT_DIR="$WORKSPACE_DIR"
62+
63+
# In CI mode, persist the variable so subsequent steps can use it
64+
if [[ "${CI:-false}" == "true" ]]; then
65+
echo "KALISIO_DEVELOPMENT_DIR=$WORKSPACE_DIR" >> "$GITHUB_ENV"
66+
fi
67+
5968
# Clone development.git
6069
setup_workspace "$WORKSPACE_DIR" "$KALISIO_GITHUB_URL/kalisio/development.git"
6170

0 commit comments

Comments
 (0)