Skip to content

Commit

Permalink
Merge pull request #25 from AcademySoftwareFoundation/jmertic-patch-6
Browse files Browse the repository at this point in the history
Update release-notice.yml
  • Loading branch information
jmertic authored Oct 4, 2023
2 parents 1f957f5 + cd7cd3c commit 449a0d4
Showing 1 changed file with 12 additions and 53 deletions.
65 changes: 12 additions & 53 deletions .github/workflows/release-notice.yml
Original file line number Diff line number Diff line change
@@ -1,59 +1,18 @@
name: Release Notice

on:
release:
types: [published]
workflow_dispatch:
types:
- created

jobs:
build:
publish:
runs-on: ubuntu-latest
timeout-minutes: 5

steps:
# To check the github context
- name: Dump Github context
env:
GITHUB_CONTEXT: ${{ toJSON(github) }}
run: echo "$GITHUB_CONTEXT"
- name: Slack Notification on SUCCESS
if: success()
uses: tokorom/action-slack-incoming-webhook@main
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
with:
text: A release is published.
blocks: |
[
{
"type": "header",
"text": {
"type": "plain_text",
"text": "${{ github.event.release.tag_name}} is published!"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Author:*\n${{ github.actor }}"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Information:*"
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": ${{ toJSON(github.event.release.body) }}
}
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "${{ github.event.release.html_url }}"
}
}
]
- name: Notify Slack
id: slack
with:
slack_webhook_url: ${{ secrets.SLACK_WEBHOOK_RELEASES_URL }}
uses: fedecalendino/[email protected]

0 comments on commit 449a0d4

Please sign in to comment.