We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b513f7a commit 0f990b5Copy full SHA for 0f990b5
1 file changed
.github/workflows/notify.yml
@@ -15,7 +15,11 @@ jobs:
15
CHANNEL_ID: ${{ secrets.TELEGRAM_CHANNEL_ID }}
16
run: |
17
if [ -n "$CHANNEL_ID" ]; then
18
- TEXT=$'📦 新增资源推送\n\n${{ github.event.head_commit.message }}\n\n🔗 资料总站:https://doc.869hr.uk\n📂 GitHub:${{ github.event.head_commit.url }}'
+ # 生成当前年月的网站页面链接(格式:YYYYMM)
19
+ CURRENT_MONTH=$(date +'%Y%m')
20
+ WEBSITE_URL="https://doc.869hr.uk/edu-knowlege/${CURRENT_MONTH}"
21
+
22
+ TEXT=$'📦 新增资源推送\n\n${{ github.event.head_commit.message }}\n\n🔗 查看详情:'${WEBSITE_URL}$'\n🌐 资料总站:https://doc.869hr.uk'
23
curl -s -X POST "https://api.telegram.org/bot${BOT_TOKEN}/sendMessage" \
24
-d chat_id="$CHANNEL_ID" \
25
--data-urlencode "text=${TEXT}"
0 commit comments