Skip to content

Commit 7d4a721

Browse files
author
Xu Zhang
committed
add issue opened workflow
1 parent 9a2ed2b commit 7d4a721

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

.github/workflows/issueOpened.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: get security issue by title and body
2+
3+
on:
4+
issues:
5+
types: [opened]
6+
7+
jobs:
8+
alert:
9+
runs-on: ubuntu-latest
10+
name: get security issue by title and body
11+
steps:
12+
- name: filter issue by keyword and send email
13+
id: script
14+
uses: ElyssaJyu/GH-Auto-Digest-Bot@main
15+
with:
16+
email_password: ${{ secrets.EMAIL_PASSWORD }}
17+
email_username: 'autodigectbot@outlook.com'
18+
- name: need send to teams
19+
if: ${{ steps.script.outputs.need_attention == 'true'}}
20+
uses: plantree/github-actions-issue-notify-teams@main
21+
with:
22+
type: new-issue
23+
message: ${{ steps.script.outputs.issue_info}}
24+
webhook: ${{ secrets.WEBHOOK }}
25+
- name: do not need send
26+
if: ${{ steps.script.outputs.need_attention == 'false'}}
27+
run: echo '${{ github.event.issue.html_url }}'

0 commit comments

Comments
 (0)