fixed user-list format #29
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"] | |
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 }} | |
jobs: | |
slackNotification: | |
runs-on: ubuntu-latest | |
name: Slack CI status - notify on failure | |
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 }}" | |
# https://github.com/slackapi/slack-github-action |