Update README.md #117
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-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) }}" |