forked from corgibytes/ruby-debug-ide
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (49 loc) · 1.73 KB
/
release-notes.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#name: Release Notes
#on:
# push:
# branches: [ master, release* ]
# pull_request:
# branches: [ master, release* ]
#
#defaults:
# run:
# shell: bash
#
#jobs:
# generate-release-notes:
# name: Generate Release Notes
# runs-on: ubuntu-20.04
#
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# fetch-depth: 0 # Required for Calculate Version step (e.g. GitVersion)
#
# - name: Calculate Version
# id: calculate_version
# uses: ./.github/actions/calculate-version
#
# - 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 ${{ env.MajorMinorPatch }}
# run: |
# dotnet gitreleasemanager create --owner lemonade-hq --repository ruby-debug-ide --token ${{ secrets.GITHUB_TOKEN }} --milestone v${{ env.GitVersion_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 'lemonade-hq' -r 'ruby-debug-ide' -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