Skip to content

Commit fa4adc0

Browse files
committed
ci: use gh to download release asset
1 parent 26d5d5b commit fa4adc0

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/release.yaml

+9-8
Original file line numberDiff line numberDiff line change
@@ -96,15 +96,16 @@ jobs:
9696
steps:
9797
- name: Prepare workspace
9898
run: rm -rf build-${{ matrix.package }} && mkdir -p build-${{ matrix.package }}
99+
99100
- name: Download ${{ inputs.tag }} source code
100-
uses: robinraju/[email protected]
101-
with:
102-
token: ${{ secrets.GH_PAT }}
103-
tag: ${{ inputs.tag }}
104-
fileName: globalprotect-openconnect-*.tar.gz
105-
tarBall: false
106-
zipBall: false
107-
out-file-path: build-${{ matrix.package }}
101+
env:
102+
GH_TOKEN: ${{ secrets.GH_PAT }}
103+
run: |
104+
gh -R yuezk/GlobalProtect-openconnect \
105+
release download ${{ inputs.tag }} \
106+
--pattern '*[^offline].tar.gz' \
107+
--dir build-${{ matrix.package }}
108+
108109
- name: Docker Login
109110
run: echo ${{ secrets.DOCKER_HUB_TOKEN }} | docker login -u ${{ secrets.DOCKER_HUB_USERNAME }} --password-stdin
110111
- name: Build ${{ matrix.package }} package in Docker

0 commit comments

Comments
 (0)