From d928262baac15fb2e8ca1749eeebc42b3b7ab446 Mon Sep 17 00:00:00 2001 From: MoetaYuko Date: Sun, 21 Apr 2024 15:02:28 +0800 Subject: [PATCH] chore(ci): fix parsing new version --- .github/workflows/version-scan.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/version-scan.yml b/.github/workflows/version-scan.yml index 5b2e779..2540032 100644 --- a/.github/workflows/version-scan.yml +++ b/.github/workflows/version-scan.yml @@ -43,9 +43,9 @@ jobs: run: | envsubst < config.toml.in > config.toml nvchecker -c config.toml - nvcmp -c config.toml --exit-status && exit || echo "ret=$?" >> $GITHUB_OUTPUT + vers=$(nvcmp -c config.toml --exit-status -aj) && exit || echo "ret=$?" >> $GITHUB_OUTPUT nvtake -c config.toml --all - echo "new=$(jq -r .cloudflared new_ver.json)" >> $GITHUB_OUTPUT + jq -cr '.[] | select(.name=="cloudflared") | "new=\(.newver)"' <<< $vers >> $GITHUB_OUTPUT echo $OP_VERSION > sha - name: Commit new version