From 2aa458e2d2a5d764ac28edff792f89bbe8bc9881 Mon Sep 17 00:00:00 2001 From: Nicholas Pease Date: Tue, 6 Jun 2023 17:56:54 -0900 Subject: [PATCH] Update '.gitea/workflows/GiteaPages.yaml' --- .gitea/workflows/GiteaPages.yaml | 35 ++++++++++++++++++++++---------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/GiteaPages.yaml b/.gitea/workflows/GiteaPages.yaml index 43496f7..d97478f 100644 --- a/.gitea/workflows/GiteaPages.yaml +++ b/.gitea/workflows/GiteaPages.yaml @@ -1,11 +1,24 @@ -name: Gitea Pages -run-name: Gitea Pages -on: [push] - -jobs: - Gitea-Pages: - runs-on: ubuntu-latest - steps: - - run: 'curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"repo\": \"${{ gitea.repository }}\",\"branch\": \"main\"}" http://192.168.0.201:11003/pages' - - run: 'curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"repo\": \"${{ gitea.repository }}\",\"branch\": \"master\"}" http://192.168.0.201:11003/pages' - - run: 'curl -i -H "Accept: application/json" -H "Content-Type:application/json" -X POST --data "{\"repo\": \"${{ gitea.repository }}\"}" http://192.168.0.201:11003/changerepourl' \ No newline at end of file +kind: pipeline +name: default +clone: + disable: true +steps: +- name: gitea-pages + image: plugins/webhook + settings: + urls: http://192.168.0.201:11003/pages + content_type: application/json + template: | + { + "repo": "{{ repo.owner }}/{{ repo.name }}", + "branch": "master" + } +- name: update-url + image: plugins/webhook + settings: + urls: http://192.168.0.201:11003/changerepourl + content_type: application/json + template: | + { + "repo": "{{ repo.owner }}/{{ repo.name }}/" + } \ No newline at end of file