This commit is contained in:
@@ -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'
|
||||
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 }}/"
|
||||
}
|
||||
Reference in New Issue
Block a user