Skip to content

Commit 298a1bf

Browse files
committed
Create discussion for releases
1 parent 58dcd21 commit 298a1bf

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

.github/workflows/release.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- name: Get version from tag
2121
id: tag_name
2222
run: echo ::set-output name=current_version::${GITHUB_REF#refs/tags/v}
23-
shell: bash
2423

2524
- name: Check out repository
2625
uses: actions/checkout@v3.1.0
@@ -60,12 +59,23 @@ jobs:
6059

6160
- name: Upload release assets
6261
uses: softprops/action-gh-release@v1
62+
id: release_updater
6363
env:
6464
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6565
with:
6666
body: ${{ steps.changelog_reader.outputs.changes }}
6767
files: ./artifacts/*.nupkg
6868

69+
- name: Create discussion for release
70+
run: |
71+
gh api \
72+
--method PATCH \
73+
-H "Accept: application/vnd.github+json" \
74+
/repos/${{ github.repository }}/releases/${{ steps.release_updater.outputs.id }} \
75+
-f discussion_category_name='Announcements'
76+
env:
77+
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
78+
6979
- name: Publish to GPR
7080
run: |
7181
dotnet nuget push "./artifacts/*.nupkg" \

0 commit comments

Comments
 (0)