From 32bbc17b61791c8b5e2cd273bd05544b190257f2 Mon Sep 17 00:00:00 2001 From: RonniSkansing Date: Thu, 17 Sep 2026 00:15:31 +0200 Subject: [PATCH] update notifications Signed-off-by: RonniSkansing --- .github/workflows/notify.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/release.yml | 4 +++- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/notify.yml diff --git a/.github/workflows/notify.yml b/.github/workflows/notify.yml new file mode 100644 index 00000000..284b674c --- /dev/null +++ b/.github/workflows/notify.yml @@ -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" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4c8f609c..277b66cf 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}"