Skip to content

CTS: do not continue on error #2

CTS: do not continue on error

CTS: do not continue on error #2

name: Github-Slack-Notification
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Run some commands
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
id: run-commands
run: |
echo "Hello, World!" "\"--- $SLACK_WEBHOOK_URL ---\""
exit 0
- name: Send custom JSON data to Slack workflow
id: slack
if : always()
uses: slackapi/[email protected]
with:
payload: |
{
"CTS-Nightly": "CTS nightly status: ${{ job.status }}: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}