Skip to content

Commit 38dba3e

Browse files
Added new github auto generated release notes
1 parent 5757604 commit 38dba3e

File tree

2 files changed

+33
-30
lines changed

2 files changed

+33
-30
lines changed

.github/workflows/dependabot-merge.yml

+27
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,33 @@ jobs:
200200
labels: |
201201
:shipit: merge
202202
203+
- name: GitHub Private Dependency Labels
204+
uses: actions-ecosystem/action-add-labels@v1
205+
if: |
206+
(github.event.action == 'opened' || github.event.action == 'reopened') &&
207+
(github.event.pull_request.user.login == 'dependabot[bot]' || github.event.pull_request.user.login == 'dependabot-preview[bot]') &&
208+
(
209+
startsWith(github.event.pull_request.title, 'Bump JetBrains.ReSharper')
210+
|| startsWith(github.event.pull_request.title, 'Bump ReportGenerator')
211+
|| startsWith(github.event.pull_request.title, 'Bump Nuke.Common')
212+
|| startsWith(github.event.pull_request.title, 'Bump GitVersion.Tool')
213+
|| startsWith(github.event.pull_request.title, 'Bump Bogus')
214+
|| startsWith(github.event.pull_request.title, 'Bump coverlet')
215+
|| startsWith(github.event.pull_request.title, 'Bump FakeItEasy')
216+
|| startsWith(github.event.pull_request.title, 'Bump FluentAssertions')
217+
|| startsWith(github.event.pull_request.title, 'Bump xunit')
218+
|| startsWith(github.event.pull_request.title, 'Bump Microsoft.NET.Test.Sdk')
219+
|| startsWith(github.event.pull_request.title, 'Bump Microsoft.SourceLink')
220+
|| startsWith(github.event.pull_request.title, 'Bump Rocket.Surgery.Nuke')
221+
|| startsWith(github.event.pull_request.title, 'Bump Rocket.Surgery.MSBuild')
222+
|| startsWith(github.event.pull_request.title, 'Bump Rocket.Surgery.Extensions.Testing')
223+
|| startsWith(github.event.pull_request.title, 'Bump Roslynator.Analyzers')
224+
)
225+
with:
226+
github_token: '${{ secrets.RSG_BOT_TOKEN }}'
227+
labels: |
228+
:briefcase: private-dependencies
229+
203230
- name: GitHub Remove Labels
204231
if: |
205232
github.event.action == 'closed'

.github/workflows/draft-release.yml

+6-30
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,6 @@ jobs:
3131
with:
3232
versionSpec: '5.x'
3333

34-
- name: Install GitReleaseManager
35-
uses: gittools/actions/gitreleasemanager/[email protected]
36-
with:
37-
versionSpec: '0.11.x'
38-
3934
- name: Use GitVersion
4035
id: gitversion
4136
uses: gittools/actions/gitversion/[email protected]
@@ -48,34 +43,15 @@ jobs:
4843
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
4944
continue-on-error: true
5045

51-
- name: Get Repo and Owner
52-
shell: pwsh
53-
id: repository
54-
run: |
55-
$parts = $ENV:GITHUB_REPOSITORY.Split('/')
56-
echo "::set-output name=owner::$($parts[0])"
57-
echo "::set-output name=repository::$($parts[1])"
58-
5946
- name: sync milestones
6047
uses: RocketSurgeonsGuild/actions/[email protected]
6148
with:
6249
default-label: ':sparkles: mysterious'
6350
github-token: ${{ secrets.GITHUB_TOKEN }}
6451

65-
- name: Create Draft Release
66-
shell: pwsh
67-
run: |
68-
dotnet gitreleasemanager create `
69-
-o "${{ steps.repository.outputs.owner }}" `
70-
-r "${{ steps.repository.outputs.repository }}" `
71-
--token "${{ secrets.RSG_BOT_TOKEN }}" `
72-
-m "v${{ steps.gitversion.outputs.majorMinorPatch }}"
73-
74-
- name: Export Changelog
75-
shell: pwsh
76-
run: |
77-
dotnet gitreleasemanager export `
78-
-o "${{ steps.repository.outputs.owner }}" `
79-
-r "${{ steps.repository.outputs.repository }}" `
80-
--token "${{ secrets.GITHUB_TOKEN }}" `
81-
-f CHANGELOG.md
52+
- name: Release
53+
uses: softprops/action-gh-release@v1
54+
with:
55+
generate_release_notes: true
56+
draft: true
57+
tag_name: "v${{ steps.gitversion.outputs.majorMinorPatch }}"

0 commit comments

Comments
 (0)