We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eeb1718 commit b09c3e4Copy full SHA for b09c3e4
1 file changed
.github/workflows/daily-check-in.yml
@@ -28,7 +28,21 @@ jobs:
28
PASSWORD: ${{ secrets.PASSWORD }}
29
run: |
30
python main.py
31
+
32
+ - name: Send Success Telegram Notification
33
+ if: ${{ success() }} # 只有当执行成功时发送通知
34
+ run: |
35
+ curl -s -X POST "https://api.telegram.org/bot${{ secrets.TELEGRAM_TOKEN }}/sendMessage" \
36
+ -d chat_id=${{ secrets.TELEGRAM_USERID }} \
37
+ -d text="LINUX DO每日签到成功完成"
38
39
+ - name: Send Failure Telegram Notification
40
+ if: ${{ failure() }} # 只有当执行失败时发送失败通知
41
42
43
44
+ -d text="LINUX DO每日签到失败,请检查日志!"
45
46
- name: Delete workflow runs
47
uses: Mattraks/delete-workflow-runs@v2
48
with:
0 commit comments