updated documentation for configuration object #19
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: Slack Notification of CI Status | |
on: | |
push: | |
branches: ["main", "feature/raisa-cicd"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
slackNotification: | |
name: Slack CI status - notify on failure | |
runs-on: ubuntu-latest | |
steps: | |
- name: Slack Notify on Failure | |
if: ${{ failure() }} | |
id: slack | |
uses: slackapi/[email protected] | |
with: | |
channel-id: 'C067F896WG5' | |
slack-message: "Github CI Result: ${{ job.status }}\nGithub PR/Commit URL: ${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | |
env: | |
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} # This works BUT it shows up as problem for some unknown reason ("Context access might be invalid: NPM_TOKEN") and there should not be any errors | |
# SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} | |
# https://github.com/slackapi/slack-github-action |