Added new pipeline to automagicly generate changelogs on pr to main
ref #63
This commit is contained in:
parent
7b5ebab453
commit
6345666ae6
31
.drone.yml
31
.drone.yml
@ -61,6 +61,37 @@ trigger:
|
|||||||
event:
|
event:
|
||||||
- push
|
- 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
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user