Added sending notification via webhook
This commit is contained in:
1 parent
b2a39d71cf
commit
43e9fe041f
1 file changed
+11
@@ -76,3 +76,14 @@ jobs:
|
|||||||
with smtplib.SMTP("127.0.0.1", 25, timeout=30) as s:
|
with smtplib.SMTP("127.0.0.1", 25, timeout=30) as s:
|
||||||
s.send_message(msg)
|
s.send_message(msg)
|
||||||
EOF
|
EOF
|
||||||
|
- name: Send notification via webhook
|
||||||
|
if: ${{ always() }}
|
||||||
|
env:
|
||||||
|
REPO: ${{ gitea.repository }}
|
||||||
|
RUN_URL: ${{ gitea.server_url }}/${{ gitea.repository }}/actions/runs/${{ gitea.run_number }}
|
||||||
|
run: |
|
||||||
|
send-notification \
|
||||||
|
--config /var/lib/gitea-runner-local/config \
|
||||||
|
--category utility \
|
||||||
|
--link "$RUN_URL" \
|
||||||
|
"Pip audit detected a problem" "$REPO"
|
||||||
Reference in new issue
Block a user