From 63b02a830cffe97342608dc0e2f54eb6db9aad6f Mon Sep 17 00:00:00 2001 From: juewuy Date: Sat, 30 Mar 2024 12:58:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B7=B2=E4=BF=AE=E6=94=B9=20=20=20=20=20=20?= =?UTF-8?q?=20=20.github/workflows/core=5Fauto=5Fupdate.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/core_auto_update.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/core_auto_update.yml b/.github/workflows/core_auto_update.yml index cf47610..bc5a754 100644 --- a/.github/workflows/core_auto_update.yml +++ b/.github/workflows/core_auto_update.yml @@ -11,7 +11,8 @@ jobs: steps: - name: Get old version run: | - echo version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) >> $GITHUB_OUTPUT + version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) + echo version_old=$version_old >> "$GITHUB_OUTPUT" - name: checkout uses: actions/checkout@v4 @@ -23,11 +24,15 @@ jobs: run: | git remote add sekai https://github.com/SagerNet/sing-box.git git fetch --tags sekai - echo version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) >> $GITHUB_OUTPUT + version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) + echo version_new=$version_new >> "$GITHUB_OUTPUT" auto_update_singboxp_with_wg: needs: check_version - if: ${{ needs.check_version.outputs.version_new != needs.check_version.outputs.version_old }} + env: + VERSION_NEW: ${{ needs.check_version.outputs.version_new }} + VERSION_OLD: ${{ needs.check_version.outputs.version_old }} + if: ${{ env.VERSION_NEW != env.VERSION_OLD }} permissions: write-all uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev with: