mirror of
https://github.com/thegeeklab/wp-ansible.git
synced 2024-11-24 22:50:39 +00:00
ci: add automatic changelog generation (#16)
This commit is contained in:
parent
d5ac147251
commit
d94de07909
@ -11,9 +11,9 @@ options:
|
|||||||
perf: Performance Improvements
|
perf: Performance Improvements
|
||||||
refactor: Code Refactoring
|
refactor: Code Refactoring
|
||||||
chore: Others
|
chore: Others
|
||||||
docs: Documentation
|
|
||||||
ci: CI Pipeline
|
|
||||||
test: Testing
|
test: Testing
|
||||||
|
ci: CI Pipeline
|
||||||
|
docs: Documentation
|
||||||
header:
|
header:
|
||||||
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
pattern: "^(\\w*)(?:\\(([\\w\\$\\.\\-\\*\\s]*)\\))?\\:\\s(.*)$"
|
||||||
pattern_maps:
|
pattern_maps:
|
||||||
|
16
.drone.star
16
.drone.star
@ -258,6 +258,15 @@ def release(ctx):
|
|||||||
"type": "docker",
|
"type": "docker",
|
||||||
"name": "release",
|
"name": "release",
|
||||||
"steps": [
|
"steps": [
|
||||||
|
{
|
||||||
|
"name": "changelog",
|
||||||
|
"image": "thegeeklab/git-chglog",
|
||||||
|
"commands": [
|
||||||
|
"git fetch -tq",
|
||||||
|
"git-chglog --no-color --no-emoji %s" % (ctx.build.ref.replace("refs/tags/v", "") if ctx.build.event == "tag" else "--next-tag unreleased unreleased"),
|
||||||
|
"git-chglog --no-color --no-emoji -o CHANGELOG.md %s" % (ctx.build.ref.replace("refs/tags/v", "") if ctx.build.event == "tag" else "--next-tag unreleased unreleased"),
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"name": "release",
|
"name": "release",
|
||||||
"image": "plugins/github-release",
|
"image": "plugins/github-release",
|
||||||
@ -269,6 +278,11 @@ def release(ctx):
|
|||||||
"overwrite": True,
|
"overwrite": True,
|
||||||
"title": ctx.build.ref.replace("refs/tags/", ""),
|
"title": ctx.build.ref.replace("refs/tags/", ""),
|
||||||
},
|
},
|
||||||
|
"when": {
|
||||||
|
"ref": [
|
||||||
|
"refs/tags/**",
|
||||||
|
],
|
||||||
|
},
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"depends_on": [
|
"depends_on": [
|
||||||
@ -276,7 +290,9 @@ def release(ctx):
|
|||||||
],
|
],
|
||||||
"trigger": {
|
"trigger": {
|
||||||
"ref": [
|
"ref": [
|
||||||
|
"refs/heads/master",
|
||||||
"refs/tags/**",
|
"refs/tags/**",
|
||||||
|
"refs/pull/**",
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
}]
|
}]
|
||||||
|
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@
|
|||||||
|
|
||||||
coverage.out
|
coverage.out
|
||||||
.drone.yml
|
.drone.yml
|
||||||
|
CHANGELOG.md
|
||||||
|
12
CHANGELOG.md
12
CHANGELOG.md
@ -1,12 +0,0 @@
|
|||||||
# Changelog
|
|
||||||
|
|
||||||
## [v2.10.4](https://github.com/owncloud-ci/drone-ansible/compare/v2.10.3...v2.10.4) (2021-02-10)
|
|
||||||
|
|
||||||
### Code Refactoring
|
|
||||||
|
|
||||||
- rewrite to use plugin boilerplate ([#12](https://github.com/owncloud-ci/drone-ansible/issues/12))
|
|
||||||
|
|
||||||
### Others
|
|
||||||
|
|
||||||
- **deps:** update dependency ansible to v2.10.7 ([#11](https://github.com/owncloud-ci/drone-ansible/issues/11))
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user