Skip to content

Commit

Permalink
Merge pull request #21 from saturdaymp/devops/releasenotes-action
Browse files Browse the repository at this point in the history
Add release notes workflow
  • Loading branch information
mrbiggred authored Aug 14, 2023
2 parents 94e6f61 + dff45f2 commit bf2dfd4
Show file tree
Hide file tree
Showing 3 changed files with 128 additions and 0 deletions.
66 changes: 66 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Release Notes

on:
push:
branches: [ master, release/* ]
pull_request:
branches: [ master, release/* ]

jobs:
generate-release-notes:
name: Generate Release Notes
runs-on: macos-13

steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0 # Required for Calculate Version step (e.g. GitVersion)

# Required by GitVersion
- name: Install .NET 6.0
uses: actions/setup-dotnet@v3
with:
dotnet-version: 6.0

- name: Install GitVersion
uses: gittools/actions/gitversion/setup@v0.10.2
with:
versionSpec: '5.12.0'

- name: GitVersion Config
uses: gittools/actions/gitversion/execute@v0.10.2
with:
useConfigFile: true
additionalArguments: '/showConfig'

- name: Determine Version
id: gitversion
uses: gittools/actions/gitversion/execute@v0.10.2
with:
useConfigFile: true
additionalArguments: '/updateprojectfiles'

- name: Install GitReleaseManager
uses: gittools/actions/gitreleasemanager/setup@v0.10.2
with:
versionSpec: '0.13.0'

# If there are no closed issues generating the Github Release will fail because it raises an exception.
# Work around this by checking for success or no closed issue errors.
- name: Create Release ${{ steps.gitversion.outputs.majorMinorPatch }}
run: |
dotnet gitreleasemanager create --owner ${{ github.repository_owner }} --repository ${{ github.event.repository.name }} --token ${{ secrets.GITHUB_TOKEN }} --milestone v${{ steps.gitversion.outputs.majorMinorPatch }} --logFilePath output.txt || true
cat output.txt | grep 'No closed issues have been found for milestone\|Drafted release is available at'
- name: 'Generate Change Log'
run: |
dotnet-gitreleasemanager export --token ${{ secrets.GITHUB_TOKEN }} -o '${{ github.repository_owner }}' -r '${{ github.event.repository.name }}' -f 'CHANGELOG.md'
git add --renormalize CHANGELOG.md
cat CHANGELOG.md
- name: 'Commit Change Log if it Changed'
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Committing auto generated change log.
file_pattern: CHANGELOG.md
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
## 1.4.3 (Dec, 22, 2017)


Exposed the didTapCheckBox event.

For a full list of issues fixed see the [1.4.3 Milestone](https://github.com/saturdaymp/XPlugins.iOS.BEMCheckBox/milestone/2).
## 1.4.2 (Dec, 4, 2017)


Fixed an issue where publishing to the App Store with a project that included BEMCheckBox would raise a Bitcode error.

For a full list of issues fixed see the [1.4.2 Milestone](https://github.com/saturdaymp/XPlugins.iOS.BEMCheckBox/milestone/1).
## 1.4.1 (Aug, 2, 2017)


Wraps [BEMCheckBox](https://github.com/Boris-Em/BEMCheckBox) version [1.4.1](https://github.com/Boris-Em/BEMCheckBox/releases/tag/1.4.1).
46 changes: 46 additions & 0 deletions GitReleaseManager.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
export:
include-created-date-in-title: true
created-date-string-format: MMM, d, yyyy

issue-labels-include:
- breaking
- bug
- devops
- dependency
- documentation
- enhancement
- refactoring
- security

issue-labels-alias:
- name: breaking
header: Breaking
plural: Breaking

- name: bug
header: Bug
plural: Bugs

- name: dependency
header: Dependency
plural: Dependencies

- name: devops
header: DevOps
plural: DevOps

- name: documentation
header: Documentation
plural: Documentation

- name: enhancement
header: Enhancement
plural: Enhancements

- name: refactoring
header: Refactoring
plural: Refactoring

- name: security
header: Security
plural: Security

0 comments on commit bf2dfd4

Please sign in to comment.