mirror of
https://gitea.com/gitea/docs.git
synced 2026-07-21 18:27:41 +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
|
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
|
sed -i "$@" 's/"version": "{{AppVer | JSEscape | Safe}}"/"version": "1.22.2"/' static/swagger-22.json
|
||||||
|
|
||||||
- name: push swagger to repo
|
git config --global user.name "Gitea Bot"
|
||||||
uses: appleboy/git-push-action@v0.0.3
|
git config --global user.email "teabot@gitea.io"
|
||||||
with:
|
git remote set origin https://x-access-token:${{ secrets.DEPLOY_TOKEN }}@gitea.com/gitea/docs.git
|
||||||
author_email: "teabot@gitea.io"
|
git add --all
|
||||||
author_name: GiteaBot
|
git commit -m "[skip ci] Updated swagger files"
|
||||||
branch: main
|
git push
|
||||||
commit: true
|
|
||||||
commit_message: "[skip ci] Updated swagger files"
|
|
||||||
remote: "git@gitea.com:gitea/docs.git"
|
|
||||||
ssh_key: ${{ secrets.DEPLOY_KEY }}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user