From 2a3a3dea1e2b1fd069f08afd9e4a5e7eae3b5b49 Mon Sep 17 00:00:00 2001 From: E98Developer Date: Sun, 15 Feb 2026 21:46:30 +0100 Subject: [PATCH] add gitea workflow --- .gitea/workflows/webhook.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .gitea/workflows/webhook.yaml diff --git a/.gitea/workflows/webhook.yaml b/.gitea/workflows/webhook.yaml new file mode 100644 index 0000000..a81af24 --- /dev/null +++ b/.gitea/workflows/webhook.yaml @@ -0,0 +1,17 @@ +name: Webhook hívás Push esetén +run-name: Webhook küldése - ${{ gitea.actor }} + +on: + push: + branches: + - 'main' # Itt add meg a konkrét ágat (pl. main vagy master) + +jobs: + call-url: + runs-on: ubuntu-latest + steps: + - name: API hívás indítása + run: | + curl -X POST "https://a-te-url-ed.hu/api?repo=${{ gitea.repository }}&branch=${{ gitea.ref_name }}&commit=${{ gitea.sha }}" \ + -H "Authorization: Bearer ${{ secrets.MY_WEBHOOK_TOKEN }}" \ + -H "Content-Type: application/json" \ No newline at end of file