Skip to content

Commit c692222

Browse files
committed
Merge remote-tracking branch 'origin/main'
# Conflicts: # plugins.json
2 parents 5f24c1f + 22e5e98 commit c692222

File tree

1 file changed

+16
-14
lines changed

1 file changed

+16
-14
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,19 @@ jobs:
5656
MOODLE_VERSION=${{ matrix.moodle_version }}
5757
push: true
5858
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 }}**\nVersion: ${{ github.ref_name }} (${{github.event.release.name}})\n<${{ github.event.release.html_url }}>"
74+
file: changes.md

0 commit comments

Comments
 (0)