v5.0.29 #40
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Notify release published | |
| on: | |
| release: | |
| types: [published] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| notify-slack: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Send Slack release published notification | |
| uses: slackapi/slack-github-action@45a88b9581bfab2566dc881e2cd66d334e621e2c # v3.0.3 | |
| with: | |
| method: chat.postMessage | |
| token: ${{ secrets.SLACK_BOT_TOKEN }} | |
| payload: | | |
| { | |
| "channel": "#development-ci", | |
| "text": "Harper ${{ github.event.release.tag_name }} GitHub release published", | |
| "blocks": [ | |
| { | |
| "type": "header", | |
| "text": { | |
| "type": "plain_text", | |
| "text": "Harper ${{ github.event.release.tag_name }} release" | |
| } | |
| }, | |
| { | |
| "type": "context", | |
| "elements": [ | |
| { | |
| "type": "mrkdwn", | |
| "text": "*Status*" | |
| }, | |
| { | |
| "type": "mrkdwn", | |
| "text": ":white_check_mark: Release approved and published on :github:" | |
| }, | |
| { | |
| "type": "mrkdwn", | |
| "text": "<${{ github.event.release.html_url }}|GitHub release>" | |
| } | |
| ] | |
| } | |
| ] | |
| } |