Gitu hub #1236
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: get security issue by title and body | |
on: | |
issues: | |
types: [opened] | |
jobs: | |
alert: | |
runs-on: ubuntu-latest | |
name: get security issue by title and body | |
steps: | |
- name: filter issue by keyword and send email | |
id: script | |
uses: ElyssaJyu/GH-Auto-Digest-Bot@main | |
with: | |
email_password: ${{ secrets.EMAIL_PASSWORD }} | |
sender_email: ${{secrets.SENDER_EMAIL}} | |
recipient_email: ${{secrets.RECIPIENT_EMAIL}} | |
- name: need send to teams | |
if: ${{ steps.script.outputs.need_attention == 'true'}} | |
uses: plantree/github-actions-issue-notify-teams@main | |
with: | |
type: new-issue | |
message: ${{ steps.script.outputs.issue_info}} | |
webhook: ${{ secrets.WEBHOOK }} | |
- name: do not need send | |
if: ${{ steps.script.outputs.need_attention == 'false'}} | |
run: echo '${{ github.event.issue.html_url }}' |