From 18d88e589d4df312334083e08cc408b68641fd5a Mon Sep 17 00:00:00 2001 From: Vladimir Timofeenko Date: Wed, 9 Oct 2024 00:16:03 -0700 Subject: [PATCH] Update installed package name (#27) This PR changes the package name from `snowflake-cli-labs` to `snowflake-cli`. Two actions (`list-snowflake-account-connections.yml` and `set-unboud-pipx-variable-test.yml`) were pinned to an old version of snowcli and the runs were failing. I unpinned the package versions in the workflows. If there's a need for testing older versions (the effect of `CLI_VERSION`) -- maybe it can be done through a dedicated workflow? [Action runs pass](https://github.com/sfc-gh-vtimofeenko/snowflake-cli-action/actions). Fixes #26 --- .github/workflows/list-snowflake-account-connections.yml | 3 +-- .github/workflows/set-unboud-pipx-variable-test.yml | 3 +-- scripts/install-snowcli.sh | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/list-snowflake-account-connections.yml b/.github/workflows/list-snowflake-account-connections.yml index 8f7ccf8..8c55ae6 100644 --- a/.github/workflows/list-snowflake-account-connections.yml +++ b/.github/workflows/list-snowflake-account-connections.yml @@ -25,11 +25,10 @@ jobs: uses: ./ id: setup_snowcli with: - cli-version: '2.1.0' default-config-file-path: '.github/workflows/tests-files/config.toml' - name: Test connection shell: bash run: | snow --version - snow connection list \ No newline at end of file + snow connection list diff --git a/.github/workflows/set-unboud-pipx-variable-test.yml b/.github/workflows/set-unboud-pipx-variable-test.yml index a386633..5e28f50 100644 --- a/.github/workflows/set-unboud-pipx-variable-test.yml +++ b/.github/workflows/set-unboud-pipx-variable-test.yml @@ -25,11 +25,10 @@ jobs: uses: ./ id: setup_snowcli with: - cli-version: '2.1.0' default-config-file-path: '.github/workflows/tests-files/config.toml' - name: Test connection shell: bash run: | snow --version - snow connection list \ No newline at end of file + snow connection list diff --git a/scripts/install-snowcli.sh b/scripts/install-snowcli.sh index 3100624..3f00007 100644 --- a/scripts/install-snowcli.sh +++ b/scripts/install-snowcli.sh @@ -12,9 +12,9 @@ mkdir -p "${PIPX_BIN_DIR}" if [ "$CLI_VERSION" == "latest" ]; then - pipx install snowflake-cli-labs + pipx install snowflake-cli else - pipx install snowflake-cli-labs=="$CLI_VERSION" + pipx install snowflake-cli=="$CLI_VERSION" fi