Skip to content

Latest commit

 

History

History
64 lines (44 loc) · 1.55 KB

README.md

File metadata and controls

64 lines (44 loc) · 1.55 KB

typescript-action status

Slack notification action.

Usage

Example

- name: Slack Notification
  uses: ry-itto/[email protected]
  env:
    SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
    SLACK_ICON_URL: 'https://github.com/ry-itto.png'
    SLACK_USERNAME: 'Capicapi'
    SLACK_GITHUB_USER_PAIRS: ${{ secrets.SLACK_USER }}
    TITLE: ':tada: Success :tada:'
    BODY: 'ry-itto'
    COLOR: '#4D88C2'

スクリーンショット 2020-05-19 16 34 42

Environment Variables

Required

  • SLACK_WEBHOOK_URL

    Slack Incoming webhook URL.

Optional

  • SLACK_ICON_URL

    User icon image URL.

  • SLACK_USERNAME

    Username.

  • SLACK_GITHUB_USER_PAIRS

    An environment variable to use when you want to connect a GitHub user to a Slack user. Save it in CSV format and replace it with a specific user name when it exists.

    Like this.

    ry-itto,UNJE44KPC
    ...
    

    ※ You need to specify a user ID when connecting Slack users.

    スクリーンショット 2020-05-19 16 46 02

  • TITLE

    Message Title.

  • BODY

    Message Body.

  • COLOR

    Attachment color. This will be shown left side of message.