mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-03 22:16:49 +02:00
29 lines
592 B
YAML
29 lines
592 B
YAML
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"
|