Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
update for version diff
Browse files Browse the repository at this point in the history
  • Loading branch information
SuTree committed Jul 11, 2024
1 parent 8107cd4 commit 7c29cc5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 # 如果没有新版本,退出工作流程
Expand Down
1 change: 1 addition & 0 deletions stored_release.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v3.11.39

0 comments on commit 7c29cc5

Please sign in to comment.