Skip to content

Commit

Permalink
更新 monitor.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Aethersailor authored Jan 9, 2025
1 parent 68bd40c commit 7d7af8c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/monitor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,13 @@ jobs:
# 对比快照文件
if ! cmp -s "$CURRENT_SNAPSHOT" "$LAST_SNAPSHOT"; then
echo "检测到更新!"
echo "::set-output name=updated::true"
echo "updated=true" >> $GITHUB_ENV
else
echo "没有检测到更新。"
echo "::set-output name=updated::false"
echo "updated=false" >> $GITHUB_ENV
fi
- name: Save the latest snapshot
if: steps.check_update.outputs.updated == 'true'
if: env.updated == 'true'
run: |
mv $RUNNER_TEMP/current_snapshot.html $RUNNER_TEMP/last_snapshot.html

0 comments on commit 7d7af8c

Please sign in to comment.