Skip to content

Commit

Permalink
ci: auto update changelog in releases branch
Browse files Browse the repository at this point in the history
  • Loading branch information
jug-dev committed Apr 12, 2023
1 parent 649678a commit db88213
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 1 deletion.
32 changes: 32 additions & 0 deletions .changelog
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
## hordelib Changelog

{{#each releases}}
{{#if href}}
#{{#unless major}}#{{/unless}} [{{title}}]({{href}})
{{else}}
## {{title}}
{{/if}}

{{#if tag}}
{{niceDate}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#each merges}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}} ({{author}})
{{/each}}
{{#each fixes}}
- {{#if commit.breaking}}**Breaking change:** {{/if}}{{commit.subject}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}} ({{author}})
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}} ({{author}})
{{/each}}

{{/each}}

{{#unless options.hideCredit}}
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
{{/unless}}
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
# get us our version number.
- name: "📣 Release on push"
id: release
uses: rymndhng/release-on-push-action@master
uses: rymndhng/release-on-push-action@v0.28.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
Expand Down Expand Up @@ -57,6 +57,14 @@ jobs:
npm -g install auto-changelog
auto-changelog
# Try to add the changelog back to the releases branch
- uses: EndBug/add-and-commit@v9
with:
add: 'CHANGELOG.md'
message: 'ci: update changelog'
committer_name: GitHub Actions
committer_email: [email protected]

# Patches our requirements.txt and pyproject.toml
# Build a changelog
- name: "🔧 Prepare our build for release"
Expand Down

0 comments on commit db88213

Please sign in to comment.