File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -64,21 +64,23 @@ jobs:
6464 runs-on : ubuntu-latest
6565
6666 steps :
67- - name : 📦 Check out clens source
68- uses : actions/checkout@v4
69- with :
70- repository : clouddrove/clens-client
71- ref : master
72-
73- - name : 🐹 Set up Go
74- uses : actions/setup-go@v5
75- with :
76- go-version : ' 1.23'
77-
78- - name : 🔨 Build clens
67+ - name : 📥 Download clens binary
68+ env :
69+ GH_TOKEN : ${{ github.token }}
7970 run : |
80- cd client
81- go build -buildvcs=false -o ../clens .
71+ RUN_ID=$(gh run list \
72+ --repo clouddrove/clens-client \
73+ --workflow ci.yml \
74+ --status success \
75+ --limit 1 \
76+ --json databaseId \
77+ -q '.[0].databaseId')
78+ gh run download "$RUN_ID" \
79+ --repo clouddrove/clens-client \
80+ --name clens-linux-amd64 \
81+ -D ./bin
82+ mv ./bin/clens-linux-amd64 ./clens
83+ chmod +x ./clens
8284
8385 - name : 🚀 Run clens
8486 env :
You can’t perform that action at this time.
0 commit comments