File tree Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Expand file tree Collapse file tree 1 file changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -56,17 +56,19 @@ jobs:
56
56
MOODLE_VERSION=${{ matrix.moodle_version }}
57
57
push : true
58
58
tags : ${{ steps.meta_release.outputs.tags || steps.meta_branch.outputs.tags }}
59
- #
60
- # - name: Prepare release body (description)
61
- # id: prep_body
62
- # run: |
63
- # echo "${{ github.event.release.body }}" > changes.md
64
- #
65
- # - name: Discord notification
66
- # uses: appleboy/discord-action@master
67
- # with:
68
- # webhook_id: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_ID }}
69
- # webhook_token: ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_TOKEN }}
70
- # username: GitHub Releases
71
- # message: "New release of **${{ github.repository }}**\nVersion: ${{ github.ref_name }} (${{github.event.release.name}})\n<${{ github.event.release.html_url }}>"
72
- # file: changes.md
59
+
60
+ - name : Prepare release body (description)
61
+ if : github.event_name == 'release'
62
+ id : prep_body
63
+ run : |
64
+ echo "${{ github.event.release.body }}" > changes.md
65
+
66
+ - name : Discord notification
67
+ if : github.event_name == 'release'
68
+ uses : appleboy/discord-action@master
69
+ with :
70
+ webhook_id : ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_ID }}
71
+ webhook_token : ${{ secrets.DISCORD_RELEASE_CHANNEL_WEBHOOK_TOKEN }}
72
+ username : GitHub Releases
73
+ message : " New release of **${{ github.repository }}**\n Version: ${{ github.ref_name }} (${{github.event.release.name}})\n <${{ github.event.release.html_url }}>"
74
+ file : changes.md
You can’t perform that action at this time.
0 commit comments