Skip to content

Update README.md

Update README.md #117

name: test-10-fake-build-updates
on: [push]
jobs:
slack-action:
#if: ${{ false }}
runs-on: ubuntu-lates
name: Test 10 [ubuntu-20.04]
steps:
- name: Send build started to slack
uses: archive/github-actions-slack@master
id: slack-build-started
with:
slack-function: send-message
slack-bot-user-oauth-access-token: ${{ secrets.SLACK_BOT_USER_OAUTH_ACCESS_TOKEN }}
slack-channel: C036UR31LTD
slack-text: |
:hourglass: Build status: Building...
Please wait 😁
- name: Fake build process
id: fake-build-process
run: |
echo 'BUILD_RESULT<<EOF' >> $GITHUB_OUTPUT
curl https://httpbin.org/json -s >> $GITHUB_OUTPUT
echo 'EOF' >> $GITHUB_OUTPUT
- name: Update slack with build result
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: C036UR31LTD
slack-update-message-ts: ${{ fromJson(steps.slack-build-started.outputs.slack-result).response.message.ts }}
slack-update-message-text: "${{ format('{0}\n\n```{1}```', ':no_entry_sign: Build status: Failed!', steps.fake-build-process.outputs.BUILD_RESULT) }}"