Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

调整server酱推送消息格式,避免消息显示不全 #21

Open
wants to merge 36 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
af77b01
Update main.yml
StoneForests Aug 2, 2023
c08be45
Create auto_push.yml
StoneForests Aug 8, 2023
b4ebf13
Create auto_clean.yaml
StoneForests Aug 8, 2023
b4f5c9e
Auto amazing commit
StoneForests Aug 8, 2023
43c147e
Auto amazing commit
StoneForests Aug 15, 2023
a6fe108
Auto amazing commit
StoneForests Sep 1, 2023
4417831
Auto amazing commit
StoneForests Sep 15, 2023
e76eabb
Auto amazing commit
StoneForests Oct 1, 2023
a4f043a
Auto amazing commit
StoneForests Oct 15, 2023
5fffcbd
Auto amazing commit
StoneForests Nov 1, 2023
dddb0c7
Auto amazing commit
StoneForests Nov 15, 2023
2698f4f
Auto amazing commit
StoneForests Dec 1, 2023
d026eb3
Auto amazing commit
StoneForests Dec 15, 2023
2103a6a
Auto amazing commit
StoneForests Jan 1, 2024
2b2b235
Auto amazing commit
StoneForests Jan 15, 2024
333f346
Auto amazing commit
StoneForests Feb 1, 2024
6c465e3
Auto amazing commit
StoneForests Feb 15, 2024
ddf5fe1
Auto amazing commit
StoneForests Mar 1, 2024
65e8dfc
Auto amazing commit
StoneForests Mar 15, 2024
9609c5a
Auto amazing commit
StoneForests Apr 1, 2024
2f81373
Auto amazing commit
StoneForests Apr 15, 2024
0b277be
Auto amazing commit
StoneForests May 1, 2024
9c7117b
Auto amazing commit
StoneForests May 15, 2024
6e8b563
Auto amazing commit
StoneForests Jun 1, 2024
d176c80
Auto amazing commit
StoneForests Jun 15, 2024
1837648
Auto amazing commit
StoneForests Jul 1, 2024
4ca5cd0
Auto amazing commit
StoneForests Jul 15, 2024
2092d1a
Merge branch 'BlueHtml:main' into master
StoneForests Jul 15, 2024
3211244
去掉Nofify的msg中多余的空格,避免server酱无法显示获得的空间
StoneForests Jul 23, 2024
741a8d2
调整server酱推送消息格式,避免消息显示不全
StoneForests Jul 23, 2024
fd75260
调整server酱推送消息格式,避免消息显示不全
StoneForests Jul 23, 2024
fa84f78
签到标题
StoneForests Jul 23, 2024
8f90e36
Auto amazing commit
StoneForests Aug 1, 2024
fa21400
Auto amazing commit
StoneForests Aug 15, 2024
0966f8e
更新server酱api地址
StoneForests Aug 20, 2024
aca2cb3
Merge branch 'master' into dev
StoneForests Aug 20, 2024
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
15 changes: 15 additions & 0 deletions .github/workflows/auto_clean.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: 'workflows日志自动清理'

on:
schedule:
- cron: '0 0 */3 * *'
workflow_dispatch:

jobs:
del_workflow:
runs-on: ubuntu-latest
steps:
- name: Delete workflow runs
uses: GitRML/delete-workflow-runs@main
with:
retain_days: '3'
32 changes: 32 additions & 0 deletions .github/workflows/auto_push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: 自动push防止Actions自动停止

on:
workflow_dispatch:
schedule:
- cron: '0 0 1,15 * *'
repository_dispatch:
types: start_action

jobs:
build:
runs-on: ubuntu-latest
if: github.event.repository.owner.id == github.event.sender.id || ! github.event.sender.id || github.actor == 'StoneForests'

steps:
- name: Getting the repo
uses: actions/checkout@v3

- name: Re setting the url for `origin`
run: |
git remote set-url origin https://${{ github.repository_owner }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.git
- name: Adding git info
run: |
git config --global user.name "StoneForests"
git config --global user.email "[email protected]"
- name: Creating an empty commit
run: |
git commit --allow-empty -m "Auto amazing commit"

- name: Finilly pushing the repo
run: |
git push origin master
9 changes: 6 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
name: Run

on:
workflow_dispatch:
repository_dispatch:
workflow_dispatch:
schedule:
- cron: "0 22,14 * * *"
watch:
types: [started]

jobs:
build:
Expand All @@ -17,4 +20,4 @@ jobs:
with:
run: dotnet run
env:
CONF: ${{ secrets.CONF }}
CONF: ${{ secrets.CONF }}
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ async Task Notify(string msg, bool isFailed = false)
Console.WriteLine(msg);
if (_conf.ScType == "Always" || (isFailed && _conf.ScType == "Failed"))
{
await _scClient.GetAsync($"https://sc.ftqq.com/{_conf.ScKey}.send?text={msg}");
await _scClient.GetAsync($"https://sctapi.ftqq.com/{_conf.ScKey}.send?title=有道云笔记签到&desp={msg}");
}
}

Expand Down