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 66
77jobs :
88 build :
9-
109 runs-on : ubuntu-latest
1110 permissions :
1211 contents : write
2827 - name : Build Plugin with Gradle
2928 run : ./gradlew buildPlugin
3029
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+
3154 - name : Upload Plugin to GitHub Release
3255 uses : actions/upload-release-asset@v1
3356 env :
You can’t perform that action at this time.
0 commit comments