From 177ef3bb8639e4860bd1b62957bb1c6a6cf113ea Mon Sep 17 00:00:00 2001 From: juewuy Date: Mon, 29 Jan 2024 16:11:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=86=85=E6=A0=B8=E5=8E=8B?= =?UTF-8?q?=E7=BC=A9=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/update_meta_core_test.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/update_meta_core_test.yaml b/.github/workflows/update_meta_core_test.yaml index 5e2f14b..37ea4ca 100644 --- a/.github/workflows/update_meta_core_test.yaml +++ b/.github/workflows/update_meta_core_test.yaml @@ -50,6 +50,17 @@ jobs: uses: actions/setup-go@v4.1.0 with: go-version: ${{needs.go.outputs.version}} + +- name: get meta version + id: meta + run: | + version=${{ github.event.inputs.tag2 }} + echo version=$version >> $GITHUB_OUTPUT + if [ -z "$TAGS" ];then + echo tags='' >> $GITHUB_OUTPUT + else + echo tags=$TAGS >> $GITHUB_OUTPUT + fi cross: strategy: @@ -98,7 +109,7 @@ jobs: GOMIPS: ${{ matrix.gomips }} CGO_ENABLED: 0 TAGS: ${{needs.meta.outputs.tags}} - VERSION: ${{ github.event.inputs.tag2 }} + VERSION: ${{needs.sing-box.outputs.version}} steps: - name: Checkout meta uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4 @@ -114,7 +125,7 @@ jobs: - name: build core id: build - run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${VERSION}' -s -w -buildid=" --tags="${TAGS}" + run: go build -v -trimpath -ldflags "-X 'github.com/sagernet/meta/constant.Version=${VERSION}' -s -w -buildid=" -tags "${TAGS}" - name: Upload file to workspace uses: actions/upload-artifact@v4 @@ -129,7 +140,7 @@ jobs: runs-on: ubuntu-latest env: RELEASE: ${{ github.event.inputs.tag3 }} - VERSION: ${{ github.event.inputs.tag2 }} + VERSION: ${{needs.sing-box.outputs.version}} steps: - name: Download file from workspace uses: actions/download-artifact@v4