File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments