From b845f112771b84f27b51bdeecace01c9f1d8f0fb Mon Sep 17 00:00:00 2001 From: ZeYi Lin <944270057@qq.com> Date: Sat, 7 Sep 2024 00:39:04 +0800 Subject: [PATCH] feat: update action --- .github/workflows/build-image.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-image.yml b/.github/workflows/build-image.yml index 77864e28..10d662d9 100644 --- a/.github/workflows/build-image.yml +++ b/.github/workflows/build-image.yml @@ -7,6 +7,11 @@ on: tags: - '*' +env: + MODEL_URLS: | + https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/hivision_modnet.onnx + https://github.com/Zeyi-Lin/HivisionIDPhotos/releases/download/pretrained-model/modnet_photographic_portrait_matting.onnx + jobs: docker: runs-on: ubuntu-latest @@ -16,7 +21,7 @@ jobs: uses: actions/checkout@v4 - name: Download models - run: echo ${{ vars.MODEL_URLS }} | xargs -n 1 -I {} wget -P hivision/creator/weights {} + run: echo "${{ vars.MODEL_URLS }}" | xargs -n 1 wget -P hivision/creator/weights - name: Set up QEMU uses: docker/setup-qemu-action@v3