From 445d1c56d7de2326a812d6972c2a2f705a2dab50 Mon Sep 17 00:00:00 2001 From: Patrick McGleenon Date: Thu, 12 Dec 2024 11:53:26 +0000 Subject: [PATCH] chore: check env variable before running clickhouse cloud workflow --- .github/workflows/clickhouse-cloud.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/clickhouse-cloud.yml b/.github/workflows/clickhouse-cloud.yml index f0d2b54fb..4c77ec994 100644 --- a/.github/workflows/clickhouse-cloud.yml +++ b/.github/workflows/clickhouse-cloud.yml @@ -19,7 +19,12 @@ jobs: export ORGANIZATION=${{ secrets.CLICKHOUSE_CLOUD_ORGANIZATION }} export KEY_ID=${{ secrets.CLICKHOUSE_CLOUD_KEY_ID }} export KEY_SECRET=${{ secrets.CLICKHOUSE_CLOUD_KEY_SECRET }} - + + if [ -z "$ORGANIZATION" ] || [ -z "$KEY_ID" ] || [ -z "$KEY_SECRET" ]; then + echo "Required secrets are not set. Skipping workflow." + exit 0 + fi + cd clickhouse-cloud curl https://clickhouse.com/ | sh sudo ./clickhouse install -y