Skip to content
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a323dff
Merge pull request #23 from TimeNugget/dev
Redstonexs Jun 18, 2025
c85f698
更新通知系统
Redstonexs Jun 18, 2025
9f97511
Merge pull request #24 from TimeNugget/Redstonexs-patch-1
Redstonexs Jun 18, 2025
c2c5ff0
Update Notify.yml
Redstonexs Jun 18, 2025
c3ed422
Merge pull request #25 from TimeNugget/Redstonexs-patch-2
Redstonexs Jun 18, 2025
79822ec
Update Notify.yml
Redstonexs Jun 18, 2025
0d18c9d
Merge pull request #26 from TimeNugget/Redstonexs-patch-3
Redstonexs Jun 18, 2025
dff03f7
Update Notify.yml
Redstonexs Jun 18, 2025
8351d84
Merge pull request #27 from TimeNugget/Redstonexs-patch-4
Redstonexs Jun 18, 2025
c1fe14c
Update Notify.yml
Redstonexs Jun 18, 2025
d71e020
Merge pull request #28 from TimeNugget/Redstonexs-patch-5
Redstonexs Jun 18, 2025
278fbbc
Update Notify.yml
Redstonexs Jun 18, 2025
5c4076e
Merge pull request #29 from TimeNugget/Redstonexs-patch-6
Redstonexs Jun 18, 2025
c47b247
Update Notify.yml
Redstonexs Jun 18, 2025
c294e84
Merge pull request #30 from TimeNugget/Redstonexs-patch-7
Redstonexs Jun 18, 2025
dcc11db
Update Notify.yml
Redstonexs Jun 18, 2025
bf0816d
Merge pull request #31 from TimeNugget/Redstonexs-patch-1
Redstonexs Jun 18, 2025
1c48d41
Update Notify.yml
Redstonexs Jun 18, 2025
f438d3e
Merge pull request #32 from TimeNugget/Redstonexs-patch-1
Redstonexs Jun 18, 2025
04a7e53
Update Notify.yml
Redstonexs Jun 18, 2025
bffdb6e
Merge pull request #33 from TimeNugget/Redstonexs-patch-1
Redstonexs Jun 18, 2025
fb7f929
更新通知酱
Redstonexs Jun 19, 2025
6b755b0
加入通知酱
Redstonexs Jun 19, 2025
144c97e
安全性修复
Redstonexs Jun 19, 2025
0e80f36
Action注入漏洞修复
Redstonexs Jun 19, 2025
cf9aedb
安全性修复
Redstonexs Jun 19, 2025
c5a9a7b
安全性修复
Redstonexs Jun 19, 2025
852ad5c
更新校园地图
Redstonexs Jun 19, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/Notify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Notify

permissions:
contents: read

on:
push:
branches:
- main

jobs:
notify:
runs-on: ubuntu-latest
steps:
- name: Send notification
env:
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
SANITIZED_COMMIT_MESSAGE=$(echo "$COMMIT_MESSAGE" | tr '\n' ' ')

curl -X POST \
"https://${{ secrets.APIURL }}/send_group_msg" \
-H "Authorization: Bearer ${{ secrets.APITOKEN }}" \
-H "Content-Type: application/json" \
-d '{
"group_id": "1049806011",
"message": [
{
"type": "text",
"data": {
"text": "📢 主分支已更新!\n\n👤 作者: ${{ github.actor }}\n📝 描述: '"$SANITIZED_COMMIT_MESSAGE"'\n🔗 提交: ${{ github.sha }}"
}
}
]
}'