Update README.md #110
Workflow file for this run
This file contains 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-9-slack-update-message-line-breaks | |
on: [push] | |
jobs: | |
slack-action: | |
#if: ${{ false }} | |
runs-on: ubuntu-latest | |
name: Test 9 [ubuntu-latest] | |
steps: | |
- name: Send Slack Message | |
uses: archive/github-actions-slack@master | |
id: send-message-1 | |
with: | |
slack-function: send-message | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: C036UR2SJ91 | |
slack-text: Test 9 - 1/2 - Message to update | |
- name: Send Slack Message Result | |
run: echo 'Data - ${{ steps.send-message-1.outputs.slack-result }}' | |
- name: Send Slack Reaction To Message | |
uses: archive/github-actions-slack@master | |
with: | |
slack-function: update-message | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: ${{ fromJson(steps.send-message-1.outputs.slack-result).response.channel }} | |
slack-update-message-ts: ${{ fromJson(steps.send-message-1.outputs.slack-result).response.message.ts }} | |
slack-update-message-text: | | |
Test 9.1 - 1/2 | |
Message to update | |
Updated! | |
- name: Send Slack Reaction To Message Result | |
run: echo 'Data - ${{ steps.send-message-1.outputs.slack-result }}' | |
- name: Send Slack Message | |
uses: archive/github-actions-slack@master | |
id: send-message-2 | |
with: | |
slack-function: send-message | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: C036UR2SJ91 | |
slack-text: Test 9 - 2/2 - Message to update | |
- name: Send Slack Message Result | |
run: echo 'Data - ${{ steps.send-message-2.outputs.slack-result }}' | |
- name: Some step in between | |
run: echo '...' | |
- name: Send Slack Reaction To Message | |
uses: archive/github-actions-slack@master | |
with: | |
slack-function: update-message | |
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }} | |
slack-channel: ${{ fromJson(steps.send-message-2.outputs.slack-result).response.channel }} | |
slack-update-message-ts: ${{ fromJson(steps.send-message-2.outputs.slack-result).response.message.ts }} | |
slack-update-message-text: "${{ format('{0}\n\n{1}', 'Test 9.1 - 2/2', toJson(runner)) }}" | |
- name: Send Slack Reaction To Message Result | |
run: echo 'Data - ${{ steps.send-message-2.outputs.slack-result }}' |