mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-23 12:45:56 +00:00
Fix bug when update swagger
This commit is contained in:
@@ -14,6 +14,7 @@ jobs:
|
||||
- run: |
|
||||
wget https://github.com/go-gitea/gitea/blob/main/templates/swagger/v1_json.tmpl
|
||||
sed -i "$@" 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "dev"/' static/swagger-latest.json
|
||||
rm v1_json.tmpl
|
||||
|
||||
wget https://github.com/go-gitea/gitea/blob/v1.22.2/templates/swagger/v1_json.tmpl
|
||||
sed -i "$@" 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.22.2"/' static/swagger-1.22.json
|
||||
|
||||
Reference in New Issue
Block a user