File tree 1 file changed +6
-4
lines changed
.github/actions/pack_binaries
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -23,13 +23,15 @@ runs:
23
23
category : ${{ inputs.category }}
24
24
path : distro/bin
25
25
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
26
31
- name : Download BendSQL
27
32
shell : bash
28
- env :
29
- GH_TOKEN : ${{ github.token }}
30
33
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
33
35
mkdir -p distro/bin
34
36
tar -xzvf /tmp/bendsql.tar.gz -C distro/bin
35
37
- name : Pack Binaries
You can’t perform that action at this time.
0 commit comments