Added new pipeline to automagicly generate changelogs on pr to main
continuous-integration/drone/push Build is passing Details
continuous-integration/drone/pr Build is failing Details

ref #63
This commit is contained in:
Nicolai Ort 2021-01-13 18:35:12 +01:00
parent 7b5ebab453
commit 6345666ae6
1 changed files with 31 additions and 0 deletions

View File

@ -61,6 +61,37 @@ trigger:
event:
- push
---
kind: pipeline
name: pr:generate_changelog
clone:
disable: true
steps:
- name: checkout pr
image: alpine/git
commands:
- git clone $DRONE_REMOTE_URL .
- git checkout dev
- name: generate changelog
image: node:latest
commands:
- npx auto-changelog --commit-limit false -p -u --hide-credit
- name: push new licenses file to repo
image: appleboy/drone-git-push
settings:
branch: dev
commit: true
commit_message: 🧾New changelog file version [CI SKIP]
author_email: bot@odit.services
remote: git@git.odit.services:lfk/backend.git
ssh_key:
from_secret: GITLAB_SSHKEY
trigger:
event:
- pull_request
branch:
- main
---
kind: pipeline
type: docker