From afc81c884ba524b58b4493c1c0fd6a6b06054495 Mon Sep 17 00:00:00 2001 From: juewuy <61367819+juewuy@users.noreply.github.com> Date: Sat, 30 Mar 2024 13:44:09 +0800 Subject: [PATCH] Update core_auto_update.yml --- .github/workflows/core_auto_update.yml | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/.github/workflows/core_auto_update.yml b/.github/workflows/core_auto_update.yml index da9d35c..0435598 100644 --- a/.github/workflows/core_auto_update.yml +++ b/.github/workflows/core_auto_update.yml @@ -9,23 +9,18 @@ jobs: check_version: runs-on: ubuntu-latest steps: - - name: Get old version - run: | - 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 with: repository: PuerNya/sing-box ref: building fetch-depth: 0 - - name: Get new version + - name: Check version run: | git remote add sekai https://github.com/SagerNet/sing-box.git git fetch --tags sekai version_new=$(CGO_ENABLED=0 go run ./cmd/internal/read_tag) - #echo version_new=$version_new >> "$GITHUB_OUTPUT" + version_old=$(curl -sSl https://github.com/juewuy/ShellCrash/releases/download/singbox_core_PuerNya/version) if [ $version_old = $version_new ];then echo "未检查到版本更新,已退出!" exit 1 @@ -33,7 +28,7 @@ jobs: auto_update_singboxp_with_wg: needs: check_version - if: ${{ needs.check_version.outputs.version_new != needs.check_version.outputs.version_old }} + if: ${{ success() }} permissions: write-all uses: juewuy/ShellCrash/.github/workflows/update_singbox_core.yaml@dev with: