Skip to content

Commit 264a2d0

Browse files
authored
Create dailysummary.yml
1 parent c522568 commit 264a2d0

1 file changed

Lines changed: 42 additions & 0 deletions

File tree

.github/workflows/dailysummary.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: get issue summary of yesterday
2+
3+
on:
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 1 * * *'
7+
8+
jobs:
9+
alert:
10+
runs-on: ubuntu-latest
11+
name: get summary
12+
steps:
13+
- name: Check out repository code
14+
uses: actions/checkout@v2
15+
- name: Set up Python
16+
uses: actions/setup-python@v2
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
shell: bash
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install requests
24+
- name: Run ls
25+
shell: bash
26+
run: |
27+
ls -la
28+
- name: Run python script
29+
id: pythonscript
30+
shell: bash
31+
run: |
32+
output=$(python .github/scripts/dailysummary.py)
33+
echo "::set-output name=dailysummary::$output"
34+
- name: check python script
35+
shell: bash
36+
run: |
37+
echo "${{ steps.pythonscript.outputs.dailysummary }}"
38+
- uses: plantree/github-actions-issue-notify-teams@main
39+
with:
40+
type: daily-report
41+
message: ${{ steps.pythonscript.outputs.dailysummary }}
42+
webhook: ${{ secrets.WEBHOOK }}

0 commit comments

Comments
 (0)