Skip to content

added slack message to workflow #4

added slack message to workflow

added slack message to workflow #4

Workflow file for this run

name: Slack Notification of CI Status
on:
push:
branches: ["feature/raisa-cicd"]
pull_request:
branches: ["feature/raisa-cicd"]
jobs:
slackNotification:
name: Slack CI status message
runs-on: ubuntu-latest
if: 'failure'

Check failure on line 13 in .github/workflows/slack-notify.yml

View workflow run for this annotation

GitHub Actions / Slack Notification of CI Status

Invalid workflow file

The workflow is not valid. .github/workflows/slack-notify.yml (Line: 13, Col: 13): Unrecognized named-value: 'failure'. Located at position 1 within expression: failure
steps:
- name: Slack Notify on Failure
id: slack
uses: slackapi/[email protected]
with:
slack-message: "Github CI result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}"
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK