- 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'
-
SLACK_WEBHOOK_URL
Slack Incoming webhook URL.
-
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.
-
TITLE
Message Title.
-
BODY
Message Body.
-
COLOR
Attachment color. This will be shown left side of message.