From 7c29cc509a7bbe37875153664c517330e73e3673 Mon Sep 17 00:00:00 2001 From: SuTree Date: Fri, 12 Jul 2024 04:48:32 +0800 Subject: [PATCH] update for version diff --- .github/workflows/ci.yml | 4 ++-- stored_release.txt | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 stored_release.txt diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1e87cb4..122a5fe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -26,11 +26,11 @@ jobs: - name: Compare with stored release id: compare_release run: | - stored_release=${{ vars.VERSION }} + stored_release=$(cat stored_release.txt 2>/dev/null || echo "") latest_release=$TAG_NAME if [ "$stored_release" != "$latest_release" ]; then echo "New release detected: $latest_release" - echo "$latest_release" > ${{ vars.VERSION }} + echo "$latest_release" > stored_release.txt else echo "No new release found. Exiting." exit 0 # 如果没有新版本,退出工作流程 diff --git a/stored_release.txt b/stored_release.txt new file mode 100644 index 0000000..201f403 --- /dev/null +++ b/stored_release.txt @@ -0,0 +1 @@ +v3.11.39 \ No newline at end of file