add gitea workflow
This commit is contained in:
parent
dbcc0edab8
commit
2a3a3dea1e
17
.gitea/workflows/webhook.yaml
Normal file
17
.gitea/workflows/webhook.yaml
Normal file
@ -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"
|
||||
Loading…
Reference in New Issue
Block a user