From d189744e93f551bf91857af50d4646a043c76312 Mon Sep 17 00:00:00 2001 From: Anders Date: Tue, 30 Jan 2024 09:34:34 +0100 Subject: [PATCH] Evaluating Backward Compatibility --- ...13-slack-message-blocks-other-key-name.yml | 47 +++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/13-slack-message-blocks-other-key-name.yml diff --git a/.github/workflows/13-slack-message-blocks-other-key-name.yml b/.github/workflows/13-slack-message-blocks-other-key-name.yml new file mode 100644 index 0000000..09b6600 --- /dev/null +++ b/.github/workflows/13-slack-message-blocks-other-key-name.yml @@ -0,0 +1,47 @@ +name: test-13-slack-message-blocks + +on: [push, issues] + +jobs: + slack-action: + #if: ${{ false }} + runs-on: ubuntu-20.04 + name: Test 13 [ubuntu-20.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: C046J5U2RGC + slack-blocks: >- + [ + { + "block_id": "text1", + "type": "section", + "text": { + "type": "mrkdwn", + "text": "TEST *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 }}'