File tree Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Expand file tree Collapse file tree 1 file changed +18
-7
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ name: update
22
33on :
44 repository_dispatch :
5- types : [tibiadata-api-go-release]
5+ types :
6+ - tibiadata-api-docs-release-update
7+
8+ permissions :
9+ contents : write
610
711jobs :
812 update :
@@ -12,14 +16,12 @@ jobs:
1216 uses : actions/checkout@v4
1317
1418 - name : Download swagger.json from tibiadata-api-go release
15- uses : i3h/download- release-asset @v1
19+ uses : robinraju/ release-downloader @v1.11
1620 with :
17- owner : TibiaData
18- repo : tibiadata-api-go
21+ repository : TibiaData/tibiadata-api-go
1922 tag : ${{ github.event.client_payload.tag_name }}
20- file : swagger.json
21- path : docs
22- token : ${{ github.GITHUB_TOKEN }}
23+ fileName : swagger.json
24+ out-file-path : docs
2325
2426 - name : Manipulate docs/swagger files with custom settings
2527 run : |
4547 with :
4648 add : docs/swagger.json docs/swagger-dev.json
4749 message : automatic update of docs/swagger files (release ${{ github.event.client_payload.tag_name }})
50+
51+ deploy :
52+ runs-on : ubuntu-latest
53+ needs : update
54+ steps :
55+ - name : Trigger github-pages workflow
56+ uses : peter-evans/repository-dispatch@v3
57+ with :
58+ event-type : tibiadata-api-docs-deploy
You can’t perform that action at this time.
0 commit comments