mirror of
https://gitea.com/gitea/docs.git
synced 2026-06-24 05:05:53 +00:00
Use deploy token rather than deploy key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user