File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
jobs :
8
8
build :
9
-
10
9
runs-on : ubuntu-latest
11
10
permissions :
12
11
contents : write
28
27
- name : Build Plugin with Gradle
29
28
run : ./gradlew buildPlugin
30
29
30
+ - name : Generate Release Notes
31
+ id : generate_notes
32
+ uses : actions/generate-release-notes@v2
33
+ with :
34
+ owner : ${{ github.repository_owner }}
35
+ repo : ${{ github.event.repository.name }}
36
+ tag_name : ${{ github.event.release.tag_name }}
37
+
38
+ - name : Update Release with Notes
39
+ uses : actions/github-script@v6
40
+ with :
41
+ script : |
42
+ const { data: release } = await github.rest.repos.getReleaseByTag({
43
+ owner: context.repo.owner,
44
+ repo: context.repo.repo,
45
+ tag: context.payload.release.tag_name,
46
+ });
47
+ await github.rest.repos.updateRelease({
48
+ owner: context.repo.owner,
49
+ repo: context.repo.repo,
50
+ release_id: release.id,
51
+ body: `${{ steps.generate_notes.outputs.notes }}`,
52
+ });
53
+
31
54
- name : Upload Plugin to GitHub Release
32
55
uses : actions/upload-release-asset@v1
33
56
env :
You can’t perform that action at this time.
0 commit comments