From 91020de33fc065dfebab4143974ecb0a36b1cb7d Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Fri, 22 Jan 2021 10:33:12 +0800 Subject: [PATCH 1/2] proposal: do generate-license & generate-gitignore by cron follow #12684 Signed-off-by: a1012112796 <1012112796@qq.com> --- .drone.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0531fb4a58580..8aaf5c7e6ad25 100644 --- a/.drone.yml +++ b/.drone.yml @@ -433,6 +433,44 @@ steps: CROWDIN_KEY: from_secret: crowdin_key +--- +kind: pipeline +name: update_gitignore_and_licenses + +platform: + os: linux + arch: amd64 + +workspace: + base: /go + path: src/code.gitea.io/gitea + +trigger: + branch: + - master + event: + - cron + cron: + - update_gitignore_and_licenses + +- name: download + image: golang:1.15 + commands: + - timeout -s ABRT 40m make generate-license generate-gitignore + +- name: push + pull: always + image: appleboy/drone-git-push + settings: + author_email: "teabot@gitea.io" + author_name: GiteaBot + commit: true + commit_message: "[skip ci] Updated licenses and gitignores " + remote: "git@github.com:go-gitea/gitea.git" + environment: + GIT_PUSH_SSH_KEY: + from_secret: git_push_ssh_key + --- kind: pipeline name: release-latest From 530d97c71ffbd9fefc4ce22b778e183507fd6e29 Mon Sep 17 00:00:00 2001 From: a1012112796 <1012112796@qq.com> Date: Sat, 23 Jan 2021 10:01:53 +0800 Subject: [PATCH 2/2] fix format --- .drone.yml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.drone.yml b/.drone.yml index 8aaf5c7e6ad25..9edfae72a828d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -453,23 +453,24 @@ trigger: cron: - update_gitignore_and_licenses -- name: download - image: golang:1.15 - commands: - - timeout -s ABRT 40m make generate-license generate-gitignore - -- name: push - pull: always - image: appleboy/drone-git-push - settings: - author_email: "teabot@gitea.io" - author_name: GiteaBot - commit: true - commit_message: "[skip ci] Updated licenses and gitignores " - remote: "git@github.com:go-gitea/gitea.git" - environment: - GIT_PUSH_SSH_KEY: - from_secret: git_push_ssh_key +steps: + - name: download + image: golang:1.15 + commands: + - timeout -s ABRT 40m make generate-license generate-gitignore + + - name: push + pull: always + image: appleboy/drone-git-push + settings: + author_email: "teabot@gitea.io" + author_name: GiteaBot + commit: true + commit_message: "[skip ci] Updated licenses and gitignores " + remote: "git@github.com:go-gitea/gitea.git" + environment: + GIT_PUSH_SSH_KEY: + from_secret: git_push_ssh_key --- kind: pipeline