Skip to content

Commit 3b0d56b

Browse files
committed
support weekly summary
1 parent 84cdf1d commit 3b0d56b

2 files changed

Lines changed: 30 additions & 7 deletions

File tree

.github/workflows/dailySummary.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,8 @@ jobs:
1212
steps:
1313
- uses: shangminx/Auto-Digest@main
1414
id: getsummary
15-
- uses: shangminx/Auto-Digest/sendEmail@main
16-
id: sendEmail
17-
with:
18-
email_password: ${{ secrets.EMAIL_PASSWORD }}
19-
sender_email: ${{secrets.SENDER_EMAIL}}
20-
recipient_email: ${{secrets.RECIPIENT_EMAIL}}
21-
report_data: ${{ steps.getsummary.outputs.dailysummary }}
15+
with:
16+
daily_or_weekly: 'daily'
2217
- uses: plantree/github-actions-issue-notify-teams@main
2318
with:
2419
type: daily-report
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: get issue summary of last week
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * 1'
7+
8+
jobs:
9+
alert:
10+
runs-on: ubuntu-latest
11+
name: get summary
12+
steps:
13+
- uses: shangminx/Auto-Digest@main
14+
id: getsummary
15+
with:
16+
daily_or_weekly: 'weekly'
17+
- uses: shangminx/Auto-Digest/sendEmail@main
18+
id: sendEmail
19+
with:
20+
email_password: ${{ secrets.EMAIL_PASSWORD }}
21+
sender_email: ${{secrets.SENDER_EMAIL}}
22+
recipient_email: ${{secrets.RECIPIENT_EMAIL}}
23+
report_data: ${{ steps.getsummary.outputs.dailysummary }}
24+
- uses: plantree/github-actions-issue-notify-teams@main
25+
with:
26+
type: weekly-report
27+
message: ${{ steps.getsummary.outputs.dailysummary }}
28+
webhook: ${{ secrets.WEBHOOK }}

0 commit comments

Comments
 (0)