Merge pull request #26 from saturdaymp/feature/set-ios-version-to-12 #33
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/[email protected] | |
with: | |
versionSpec: '5.12.0' | |
- name: GitVersion Config | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
useConfigFile: true | |
additionalArguments: '/showConfig' | |
- name: Determine Version | |
id: gitversion | |
uses: gittools/actions/gitversion/[email protected] | |
with: | |
useConfigFile: true | |
additionalArguments: '/updateprojectfiles' | |
- name: Install GitReleaseManager | |
uses: gittools/actions/gitreleasemanager/[email protected] | |
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 |