Fix bug when update swagger

This commit is contained in:
Lunny Xiao
2024-09-12 11:00:02 -07:00
parent 6564f98656
commit b0efb07c3f

View File

@@ -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