mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-22 09:12:58 +01:00
Add auto realease creation
This commit is contained in:
parent
c68836e8f7
commit
aab31a5edb
@ -1,5 +1,4 @@
|
||||
{
|
||||
"output": "stdout",
|
||||
"template": ".github/changlog_template.hbs",
|
||||
"unreleased": true,
|
||||
"commitLimit": false
|
||||
|
45
.github/changlog_template.hbs
vendored
45
.github/changlog_template.hbs
vendored
@ -1,5 +1,26 @@
|
||||
{{#each releases}}
|
||||
{{#if @first}}
|
||||
{{#if href}}
|
||||
## [{{title}}]({{href}}){{#if tag}} - {{isoDate}}{{/if}}
|
||||
{{else}}
|
||||
## {{title}}{{#if tag}} - {{isoDate}}{{/if}}
|
||||
{{/if}}
|
||||
|
||||
{{#commit-list commits heading='## 💥 Breaking changes' message=':boom:'}}
|
||||
- {{subject}} [`{{shorthash}}`]({{href}}) {{setVar "fix" "true"}}
|
||||
{{/commit-list}}
|
||||
{{#unless @root.fix }}
|
||||
{{#commit-list merges heading='## 💥 Breaking changes' message=':boom:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/unless}}
|
||||
{{#if @root.fix }}
|
||||
{{#commit-list merges heading='' message=':boom:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
{{#commit-list commits heading='## 🚑 Fixs' message=':ambulance:'}}
|
||||
- {{subject}} [`{{shorthash}}`]({{href}}) {{setVar "fix" "true"}}
|
||||
{{/commit-list}}
|
||||
@ -15,39 +36,21 @@
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
||||
{{#commit-list commits heading='## 🔨 Changes' message=':hammer:|:heavy_plus_sign:'}}
|
||||
{{#commit-list commits heading='## ✏️ Other changes' exclude=':boom:|:ambulance:|:heavy_plus_sign:'}}
|
||||
- {{subject}} [`{{shorthash}}`]({{href}}) {{setVar "change" "true"}}
|
||||
{{/commit-list}}
|
||||
{{#unless @root.change }}
|
||||
{{#commit-list merges heading='## 🔨 Changes' message=':hammer:|:heavy_plus_sign:'}}
|
||||
{{#commit-list merges heading='## ✏️ Other changes' exclude=':boom:|:ambulance:|:heavy_plus_sign:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/unless}}
|
||||
{{#if @root.change }}
|
||||
{{#commit-list merges heading='' message=':hammer:|:heavy_plus_sign:'}}
|
||||
{{#commit-list merges heading='' exclude=':boom:|:ambulance:|:heavy_plus_sign:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
||||
{{#commit-list commits heading='## ✏ Enhancements' message=':pencil2:'}}
|
||||
- {{subject}} [`{{shorthash}}`]({{href}}) {{setVar "enhanc" "true"}}
|
||||
{{/commit-list}}
|
||||
{{#unless @root.enhanc }}
|
||||
{{#commit-list merges heading='## ✏ Enhancements' message=':pencil2:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/unless}}
|
||||
{{#if @root.enhanc }}
|
||||
{{#commit-list merges heading='' message=':pencil2:'}}
|
||||
- {{message}} [`{{id}}`]({{href}}) `{{author}}`
|
||||
{{/commit-list}}
|
||||
{{/if}}
|
||||
|
||||
|
||||
|
||||
{{#commit-list commits heading='## ⬆️ Dependency updates' message=':arrow_up:'}}
|
||||
- {{subject}} [`{{shorthash}}`]({{href}}) {{setVar "dep" "true"}}
|
||||
{{/commit-list}}
|
||||
|
17
.github/workflows/build_addon.yml
vendored
17
.github/workflows/build_addon.yml
vendored
@ -186,7 +186,7 @@ jobs:
|
||||
done
|
||||
cosign sign --yes ${images}
|
||||
|
||||
update_main_ha_repository:
|
||||
update_branch_ha_repository:
|
||||
name: Update HA addon repository
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
@ -248,3 +248,18 @@ jobs:
|
||||
git add .
|
||||
git commit -m "Update Nextcloud Backup to ${{ steps.branch-names.outputs.current_branch }}.${{ github.run_number }}"
|
||||
git push
|
||||
|
||||
draft-release:
|
||||
name: Draft release
|
||||
runs-on: ubuntu-latest
|
||||
needs:
|
||||
- build-dockers
|
||||
if: startsWith(github.ref, 'refs/tags/')
|
||||
steps:
|
||||
- name: Get changelog
|
||||
run: npx auto-changelog --handlebars-setup .github/custom-handlebars.js
|
||||
- name: Create release
|
||||
uses: softprops/action-gh-release@v2
|
||||
with:
|
||||
body: CHANGELOG.md
|
||||
draft: true
|
||||
|
Loading…
Reference in New Issue
Block a user