From 366f2219e51605c25fd3455fbc525169fa15fa77 Mon Sep 17 00:00:00 2001 From: mzz <2017@duck.com> Date: Sun, 16 Jun 2024 15:39:47 +0800 Subject: [PATCH] Update pick-build.yml --- .github/workflows/pick-build.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pick-build.yml b/.github/workflows/pick-build.yml index 549ff552..3b6d02b9 100644 --- a/.github/workflows/pick-build.yml +++ b/.github/workflows/pick-build.yml @@ -16,6 +16,10 @@ on: description: 'Commit ID or branch name for dae-core' required: false default: 'main' + dae-core-remote: + description: 'Remote address of dae-core' + required: false + default: 'https://github.com/daeuniverse/dae.git' jobs: checkout-full-src: @@ -37,7 +41,7 @@ jobs: git checkout ${{ github.event.inputs.wing }} export GOMODCACHE="${PWD}"/go-mod go mod download -modcacherw - cd dae-core && git checkout ${{ github.event.inputs.dae-core }} && go mod download -modcacherw && cd .. + cd dae-core && git remote set-url origin ${{ github.event.inputs.dae-core-remote }} && git fetch origin && git checkout ${{ github.event.inputs.dae-core }} && go mod download -modcacherw && cd .. find "$GOMODCACHE" -maxdepth 1 ! -name "cache" ! -name "go-mod" -exec rm -rf {} \; sed -i 's/#export GOMODCACHE=$(PWD)\/go-mod/export GOMODCACHE=$(PWD)\/go-mod/' Makefile working-directory: wing