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