klip-sdk
Version:
JavaScript SDK to interact with klip App2App requests
49 lines • 1.48 kB
YAML
name: Slack message
author: Bolt Lee
description: 'Send message using slack'
inputs:
SLACK_WEBHOOK:
description: 'Need SLACK_WEBHOOK_URL'
required: true
default: ''
build_number:
description: 'fastlane BUILD_NUMBER'
required: true
default: ''
runs:
using: "composite"
steps:
- name: Send custom JSON data to Slack workflow
id: slack
uses: slackapi/slack-github-action@v1.26.0
with:
payload: |
{
"attachments": [
{
"fallback": "Success Deploy All.",
"color": "#3AA3E3",
"text": "Success Deploy All",
"fields": [
{
"title": "Tag",
"value": "${{ github.ref_name }}",
"short": true
},
{
"title": "Project",
"value": "${{ github.repository }}",
"short": true
},
{
"title": "Actor",
"value": "${{ github.actor }}",
"short": true
}
]
}
]
}
env:
SLACK_WEBHOOK_URL: ${{ inputs.SLACK_WEBHOOK }}
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK