Skip to content

Commit 9fc04fb

Browse files
authored
Merge pull request #3219 from MicrosoftEdge/xu-ms/add_workflow
add issue opened workflow
2 parents 9680018 + d056732 commit 9fc04fb

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/issueOpened.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
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+
sender_email: ${{secrets.SENDER_EMAIL}}
18+
recipient_email: ${{secrets.RECIPIENT_EMAIL}}
19+
- name: need send to teams
20+
if: ${{ steps.script.outputs.need_attention == 'true'}}
21+
uses: plantree/github-actions-issue-notify-teams@main
22+
with:
23+
type: new-issue
24+
message: ${{ steps.script.outputs.issue_info}}
25+
webhook: ${{ secrets.WEBHOOK }}
26+
- name: do not need send
27+
if: ${{ steps.script.outputs.need_attention == 'false'}}
28+
run: echo '${{ github.event.issue.html_url }}'

0 commit comments

Comments
 (0)