Skip to content

Commit 449a0d4

Browse files
authored
Merge pull request #25 from AcademySoftwareFoundation/jmertic-patch-6
Update release-notice.yml
2 parents 1f957f5 + cd7cd3c commit 449a0d4

File tree

1 file changed

+12
-53
lines changed

1 file changed

+12
-53
lines changed
Lines changed: 12 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,18 @@
11
name: Release Notice
2+
23
on:
34
release:
4-
types: [published]
5-
workflow_dispatch:
5+
types:
6+
- created
7+
68
jobs:
7-
build:
9+
publish:
810
runs-on: ubuntu-latest
11+
timeout-minutes: 5
12+
913
steps:
10-
# To check the github context
11-
- name: Dump Github context
12-
env:
13-
GITHUB_CONTEXT: ${{ toJSON(github) }}
14-
run: echo "$GITHUB_CONTEXT"
15-
- name: Slack Notification on SUCCESS
16-
if: success()
17-
uses: tokorom/action-slack-incoming-webhook@main
18-
env:
19-
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
20-
with:
21-
text: A release is published.
22-
blocks: |
23-
[
24-
{
25-
"type": "header",
26-
"text": {
27-
"type": "plain_text",
28-
"text": "${{ github.event.release.tag_name}} is published!"
29-
}
30-
},
31-
{
32-
"type": "section",
33-
"text": {
34-
"type": "mrkdwn",
35-
"text": "*Author:*\n${{ github.actor }}"
36-
}
37-
},
38-
{
39-
"type": "section",
40-
"text": {
41-
"type": "mrkdwn",
42-
"text": "*Information:*"
43-
}
44-
},
45-
{
46-
"type": "section",
47-
"text": {
48-
"type": "mrkdwn",
49-
"text": ${{ toJSON(github.event.release.body) }}
50-
}
51-
},
52-
{
53-
"type": "section",
54-
"text": {
55-
"type": "mrkdwn",
56-
"text": "${{ github.event.release.html_url }}"
57-
}
58-
}
59-
]
14+
- name: Notify Slack
15+
id: slack
16+
with:
17+
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
18+
uses: fedecalendino/[email protected]

0 commit comments

Comments
 (0)