Skip to content

Commit 91f1ced

Browse files
authored
chore(ci): fix pack binaries in release (#17335)
1 parent e71f3b5 commit 91f1ced

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/actions/pack_binaries/action.yml

+6-4
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,15 @@ runs:
2323
category: ${{ inputs.category }}
2424
path: distro/bin
2525
artifacts: metactl,meta,query,query.debug
26+
- name: Get Latest BendSQL
27+
id: bendsql
28+
uses: pozetroninc/github-action-get-latest-release@master
29+
with:
30+
repository: databendlabs/bendsql
2631
- name: Download BendSQL
2732
shell: bash
28-
env:
29-
GH_TOKEN: ${{ github.token }}
3033
run: |
31-
verison=$(gh release list --repo databendlabs/bendsql --json 'name' --jq '.[].name' | head -n 1)
32-
curl -sSLfo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/${verison}/bendsql-${{ inputs.target }}.tar.gz
34+
curl -sSLfo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/${{ steps.bendsql.outputs.release }}/bendsql-${{ inputs.target }}.tar.gz
3335
mkdir -p distro/bin
3436
tar -xzvf /tmp/bendsql.tar.gz -C distro/bin
3537
- name: Pack Binaries

0 commit comments

Comments
 (0)