From e71f3b50617557e34ba60f993b27773e3187c3f0 Mon Sep 17 00:00:00 2001 From: everpcpc Date: Mon, 20 Jan 2025 10:04:32 +0800 Subject: [PATCH] chore(ci): fix pack binaries (#17332) --- .github/actions/pack_binaries/action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/actions/pack_binaries/action.yml b/.github/actions/pack_binaries/action.yml index bc54eedb02e4..88fa7fc914ff 100644 --- a/.github/actions/pack_binaries/action.yml +++ b/.github/actions/pack_binaries/action.yml @@ -28,8 +28,9 @@ runs: env: GH_TOKEN: ${{ github.token }} run: | - verison=$(gh release list --repo databendlabs/bendsql | head -n 1 | awk '{print $1}') - curl -sSLfo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/${verison}/bendsql-${verison}-${{ inputs.target }}.tar.gz + verison=$(gh release list --repo databendlabs/bendsql --json 'name' --jq '.[].name' | head -n 1) + curl -sSLfo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/${verison}/bendsql-${{ inputs.target }}.tar.gz + mkdir -p distro/bin tar -xzvf /tmp/bendsql.tar.gz -C distro/bin - name: Pack Binaries id: pack_binaries