update homebrew version via cron (#154)

Fix #98

Reviewed-on: https://gitea.com/gitea/homebrew-gitea/pulls/154
Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com>
Reviewed-by: 6543 <6543@obermui.de>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-committed-by: techknowlogick <techknowlogick@gitea.io>
This commit is contained in:
techknowlogick 2022-02-28 09:31:41 +08:00 committed by 6543
parent 1f9a3fe5eb
commit 2b7235c83e
1 changed files with 37 additions and 0 deletions

View File

@ -73,3 +73,40 @@ steps:
- changelog --version
- brew install gitea/gitea/gitea-head
- gitea --version
---
kind: pipeline
name: update_version
platform:
os: linux
arch: arm64
trigger:
branch:
- master
event:
- cron
cron:
- update_version
steps:
- name: update
image: alpine:3.15
pull: always
commands:
- ./bump_version.sh
- name: push
image: appleboy/drone-git-push
pull: always
settings:
author_email: "teabot@gitea.io"
author_name: GiteaBot
branch: master
commit: true
commit_message: "[skip ci] Updated Version via cron"
remote: "git@gitea.com:gitea/homebnew-gitea.git"
environment:
GIT_PUSH_SSH_KEY:
from_secret: git_push_ssh_key