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: test-13-slack-message-blocks | |
| on: [push] | |
| permissions: {} | |
| jobs: | |
| slack-action: | |
| #if: ${{ false }} | |
| runs-on: ubuntu-24.04 | |
| name: Test 13 [ubuntu-24.04] | |
| steps: | |
| - name: Send Slack Message (Blocks - Different Key Name) | |
| uses: archive/github-actions-slack@master | |
| id: send-message | |
| with: | |
| slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
| slack-channel: C06G1B1KLMU | |
| # This is an old format, the correct one is "slack-optional-blocks" | |
| slack-blocks: >- | |
| [ | |
| { | |
| "block_id": "text1", | |
| "type": "section", | |
| "text": { | |
| "type": "mrkdwn", | |
| "text": "Test 13 - *TEST*" | |
| } | |
| }, | |
| { | |
| "type": "divider" | |
| }, | |
| { | |
| "block_id": "text2", | |
| "type": "context", | |
| "elements": [ | |
| { | |
| "type": "plain_text", | |
| "text": "TEST..." | |
| } | |
| ] | |
| }, | |
| { | |
| "type": "divider" | |
| } | |
| ] | |
| - name: Result from "Send Slack Message" | |
| run: echo '${{ steps.send-message.outputs.slack-result }}' |