mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-03 14:06:51 +02:00
update notifications
Signed-off-by: RonniSkansing <rskansing@gmail.com>
This commit is contained in:
2 files changed
+31
-1
No files matched your search
@@ -0,0 +1,28 @@
|
||||
name: notify
|
||||
|
||||
on:
|
||||
watch:
|
||||
types: [started]
|
||||
issues:
|
||||
types: [opened]
|
||||
|
||||
permissions: {}
|
||||
|
||||
jobs:
|
||||
notify:
|
||||
runs-on: ubuntu-latest
|
||||
env:
|
||||
NOTIFY_URL: ${{ secrets.NOTIFY_URL }}
|
||||
steps:
|
||||
- name: Star
|
||||
if: github.event_name == 'watch'
|
||||
run: |
|
||||
curl -H "Title: New star" -H "Tags: star" \
|
||||
-d "new star" \
|
||||
"$NOTIFY_URL"
|
||||
- name: Issue
|
||||
if: github.event_name == 'issues'
|
||||
run: |
|
||||
curl -H "Title: New issue" -H "Tags: bug" \
|
||||
-d "new issue created" \
|
||||
"$NOTIFY_URL"
|
||||
@@ -200,4 +200,6 @@ jobs:
|
||||
|
||||
- name: Notify about release
|
||||
run: |
|
||||
curl -d "phishingclub version ${{ steps.get_version.outputs.VERSION }} has been released on GitHub" https://ntfy.sh/phishing_club_released
|
||||
curl -H "Title: New release" -H "Tags: rocket" \
|
||||
-d "phishingclub version ${{ steps.get_version.outputs.VERSION }} has been released on GitHub" \
|
||||
"${{ secrets.NOTIFY_URL }}"
|
||||
Reference in new issue
Block a user