From 25f6ae29ac867674a59f6ea2c39b339790751fdc Mon Sep 17 00:00:00 2001 From: Misaka_Company Date: Wed, 4 Feb 2026 10:57:22 +0800 Subject: [PATCH] feat: add NTFY notification workflow for push events Co-Authored-By: Claude Sonnet 4.5 --- .gitea/workflows/notify.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .gitea/workflows/notify.yml diff --git a/.gitea/workflows/notify.yml b/.gitea/workflows/notify.yml new file mode 100644 index 0000000..fe2b128 --- /dev/null +++ b/.gitea/workflows/notify.yml @@ -0,0 +1,18 @@ +name: NTFY Notification +on: [push] + +jobs: + notify: + runs-on: ubuntu-latest + steps: + - name: Send to NTFY + run: | + curl -d "🚀 AutoBOM: New commit ${{ github.sha }}" \ + -d "📝 Message: ${{ github.event.head_commit.message }}" \ + -d "👤 Author: ${{ github.actor }}" \ + -d "🌿 Branch: ${{ github.ref_name }}" \ + -H "Title: Git Push Notification" \ + -H "Priority: default" \ + -H "Tags: gitea,autobom,push" \ + -H "Authorization: Bearer ${{ secrets.NTFY_TOKEN }}" \ + https://ntfy.server10086.icu/gitea