From 1d058ab0dc4a6b2d9df93b696615cad6ee6d1537 Mon Sep 17 00:00:00 2001 From: marvinpinto Date: Sat, 19 Oct 2019 16:57:15 +0000 Subject: [PATCH] Update release files for tag: latest --- README.md | 6 ++--- dist/commit.hbs | 61 +++++++++++++++++++++++++++++++++++++++++++++++ dist/footer.hbs | 11 +++++++++ dist/header.hbs | 25 +++++++++++++++++++ dist/template.hbs | 16 +++++++++++++ 5 files changed, 116 insertions(+), 3 deletions(-) create mode 100644 dist/commit.hbs create mode 100644 dist/footer.hbs create mode 100644 dist/header.hbs create mode 100644 dist/template.hbs diff --git a/README.md b/README.md index 4814688..36eb2c8 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ jobs: run: | echo "done!" - - uses: "marvinpinto/actions-automatic-releases@latest" + - uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" automatic_release_tag: "latest" @@ -89,7 +89,7 @@ jobs: run: | echo "done!" - - uses: "marvinpinto/actions-automatic-releases@latest" + - uses: "marvinpinto/action-automatic-releases@latest" with: repo_token: "${{ secrets.GITHUB_TOKEN }}" prerelease: false @@ -123,7 +123,7 @@ The GitHub Actions framework allows you to trigger this (and other) actions on _ Every commit that lands on master for this project triggers an automatic build as well as a tagged release called `latest`. If you don't wish to live on the bleeding edge you may use a stable release instead. See [releases](../../releases/latest) for the available versions. ```yaml -- uses: "marvinpinto/actions-automatic-releases@" +- uses: "marvinpinto/action-automatic-releases@" ``` ## How to get help diff --git a/dist/commit.hbs b/dist/commit.hbs new file mode 100644 index 0000000..e10a0d9 --- /dev/null +++ b/dist/commit.hbs @@ -0,0 +1,61 @@ +*{{#if scope}} **{{scope}}:** +{{~/if}} {{#if subject}} + {{~subject}} +{{~else}} + {{~header}} +{{~/if}} + +{{~!-- commit link --}} {{#if @root.linkReferences~}} + ([{{shortHash}}]( + {{~#if @root.repository}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~else}} + {{~@root.repoUrl}} + {{~/if}}/ + {{~@root.commit}}/{{hash}})) +{{~else}} + {{~shortHash}} +{{~/if}} + +{{~!-- commit references --}} +{{~#if references~}} + , closes + {{~#each references}} {{#if @root.linkReferences~}} + [ + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}}#{{this.issue}}]( + {{~#if @root.repository}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if this.repository}} + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}} + {{~else}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~/if}} + {{~else}} + {{~@root.repoUrl}} + {{~/if}}/ + {{~@root.issue}}/{{this.issue}}) + {{~else}} + {{~#if this.owner}} + {{~this.owner}}/ + {{~/if}} + {{~this.repository}}#{{this.issue}} + {{~/if}}{{/each}} +{{~/if}} + diff --git a/dist/footer.hbs b/dist/footer.hbs new file mode 100644 index 0000000..2aa774f --- /dev/null +++ b/dist/footer.hbs @@ -0,0 +1,11 @@ +{{#if noteGroups}} +{{#each noteGroups}} + +### {{title}} + +{{#each notes}} +* {{#if commit.scope}}**{{commit.scope}}:** {{/if}}{{text}} +{{/each}} +{{/each}} + +{{/if}} diff --git a/dist/header.hbs b/dist/header.hbs new file mode 100644 index 0000000..fc781c4 --- /dev/null +++ b/dist/header.hbs @@ -0,0 +1,25 @@ +{{#if isPatch~}} + ## +{{~else~}} + # +{{~/if}} {{#if @root.linkCompare~}} + [{{version}}]( + {{~#if @root.repository~}} + {{~#if @root.host}} + {{~@root.host}}/ + {{~/if}} + {{~#if @root.owner}} + {{~@root.owner}}/ + {{~/if}} + {{~@root.repository}} + {{~else}} + {{~@root.repoUrl}} + {{~/if~}} + /compare/{{previousTag}}...{{currentTag}}) +{{~else}} + {{~version}} +{{~/if}} +{{~#if title}} "{{title}}" +{{~/if}} +{{~#if date}} ({{date}}) +{{/if}} diff --git a/dist/template.hbs b/dist/template.hbs new file mode 100644 index 0000000..38e15d2 --- /dev/null +++ b/dist/template.hbs @@ -0,0 +1,16 @@ +{{> header}} + +{{#each commitGroups}} + +{{#if title}} +### {{title}} + +{{/if}} +{{#each commits}} +{{> commit root=@root}} +{{/each}} + +{{/each}} +{{> footer}} + +