Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Update license & gitignore by cron #14419

Merged
merged 5 commits into from
Jan 23, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .drone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,45 @@ 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

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
name: release-latest
Expand Down