Skip to content

Commit

Permalink
chore(ci): fix pack binaries in release (#17335)
Browse files Browse the repository at this point in the history
  • Loading branch information
everpcpc authored Jan 20, 2025
1 parent e71f3b5 commit 91f1ced
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/actions/pack_binaries/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ runs:
category: ${{ inputs.category }}
path: distro/bin
artifacts: metactl,meta,query,query.debug
- name: Get Latest BendSQL
id: bendsql
uses: pozetroninc/github-action-get-latest-release@master
with:
repository: databendlabs/bendsql
- name: Download BendSQL
shell: bash
env:
GH_TOKEN: ${{ github.token }}
run: |
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
curl -sSLfo /tmp/bendsql.tar.gz https://github.com/databendlabs/bendsql/releases/download/${{ steps.bendsql.outputs.release }}/bendsql-${{ inputs.target }}.tar.gz
mkdir -p distro/bin
tar -xzvf /tmp/bendsql.tar.gz -C distro/bin
- name: Pack Binaries
Expand Down

0 comments on commit 91f1ced

Please sign in to comment.