Use deploy token rather than deploy key

This commit is contained in:
Lunny Xiao
2024-09-13 12:03:35 -07:00
parent c12effbaff
commit 98633d3b32

View File

@@ -18,13 +18,9 @@ jobs:
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-22.json
- name: push swagger to repo
uses: appleboy/git-push-action@v0.0.3
with:
author_email: "teabot@gitea.io"
author_name: GiteaBot
branch: main
commit: true
commit_message: "[skip ci] Updated swagger files"
remote: "git@gitea.com:gitea/docs.git"
ssh_key: ${{ secrets.DEPLOY_KEY }}
git config --global user.name "Gitea Bot"
git config --global user.email "teabot@gitea.io"
git remote set origin https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@gitea.com/gitea/docs.git
git add --all
git commit -m "[skip ci] Updated swagger files"
git push