ci: update git push action for secure authentication (#162)
- Replace the old git push action with a new one from a different repository - Remove commands for git configuration and committing/pushing code - Add new parameters for the git push action, including a commit message and remote repository information - Use a secret key for authentication in the git push action Signed-off-by: appleboy <appleboy.tw@gmail.com> Reviewed-on: https://gitea.com/gitea/homebrew-gitea/pulls/162 Co-authored-by: appleboy <appleboy.tw@gmail.com> Co-committed-by: appleboy <appleboy.tw@gmail.com>
This commit is contained in:
parent
29226e8dda
commit
165a819ba6
|
@ -12,9 +12,12 @@ jobs:
|
||||||
- name: update
|
- name: update
|
||||||
run: ./bump_version.sh
|
run: ./bump_version.sh
|
||||||
- name: commit
|
- name: commit
|
||||||
run: |
|
uses: https://github.com/appleboy/git-push-action@v0.0.2
|
||||||
git config --global user.email "teabot@gitea.io"
|
with:
|
||||||
git config --global user.name "GiteaBot"
|
author_email: "teabot@gitea.io"
|
||||||
git add --all
|
author_name: GiteaBot
|
||||||
git commit -m "[skip ci] Updated Version via cron" || true
|
branch: main
|
||||||
git push origin main
|
commit: true
|
||||||
|
commit_message: "[skip ci] Updated Version via cron"
|
||||||
|
remote: "git@gitea.com:gitea/homebrew-gitea.git"
|
||||||
|
ssh_key: ${{ secrets.DEPLOY_KEY }}
|
||||||
|
|
Loading…
Reference in New Issue