ngbs 1 year ago
parent
commit
2445272854
1 changed files with 2 additions and 2 deletions
  1. 2 2
      .github/workflows/monitor-releases.yml

+ 2 - 2
.github/workflows/monitor-releases.yml

@@ -2,7 +2,7 @@ name: Monitor Releases
 
 on:
   schedule:
-    - cron: '0 0 * * *' # 每天零点执行
+    - cron: "0 0 * * *" # 每天零点执行
   workflow_dispatch: # 手动触发
 
 jobs:
@@ -22,7 +22,7 @@ jobs:
         shell: bash
 
       - name: Send Notification if New Release
-        if: ${{ env.latest_release }} != github.ref
+        if: ${{ env.latest_release }} != ${{ github.ref }}
         uses: dawidd6/action-send-mail@v3
         with:
           server_address: smtp.gmail.com