Skip to content

v1.0.6

v1.0.6 #7

Workflow file for this run

name: Publish
on:
release:
types: [ published ]
jobs:
publish:
name: Publish
runs-on: ubuntu-latest
steps:
- name: Post to a Slack channel
id: slack
uses: slackapi/slack-github-action@v1
with:
payload: |
{
"text": "New release ${{github.ref_name}} for ${{github.event.repository.name}}.",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "New release for <${{github.event.repository.html_url}}|`${{github.event.repository.name}}`>\n*<${{github.event.release.html_url}}|release notes>*"
}
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Project:*\n${{github.event.repository.name}}"
},
{
"type": "mrkdwn",
"text": "*Version:*\n${{github.ref_name}}"
}
]
},
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "${{github.event.sender.avatar_url}}",
"alt_text": "${{github.event.sender.login}}"
},
{
"type": "mrkdwn",
"text": "*${{github.event.sender.login}}* has triggered this release."
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.PIPELINE_SLACK_CHANNEL_WEBHOOK_URL }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK