You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Slatify
v1.7.2
This is Slack Notification for GitHub Actions.
Generated from actions/javascript-template.
- Notify the result of GitHub Actions
- Support three job status (reference: job-context)
- success
- failure
- cancelled
First of all, you need to set GitHub secrets for SLACK_WEBHOOK that is Incoming Webhook URL.
You can customize the following parameters:
with parameter | required/optional | default | description |
---|---|---|---|
type | required | N/A | The result of GitHub Actions job This parameter value must contain success , fail or cancel We recommend using ${{ job.status }} |
job_name | required | N/A | Means slack notification title |
url | required | N/A | Slack Incoming Webhooks URL Please specify this key or SLACK_WEBHOOK environment variable ※SLACK_WEBHOOK will be deprecated |
icon_emoji | optional | Use Slack Incoming Webhook configuration | Slack icon |
username | optional | Use Slack Incoming Webhook configuration | Slack username |
channel | optional | Use Slack Incoming Webhook configuration | Slack channel name |
Please refer action.yml
for more details.
- name: Slack Notification
uses: homoluctus/slatify@master
if: always()
with:
type: ${{ job.status }}
job_name: '*Lint Check*'
channel: '#random'
url: ${{ secrets.SLACK_WEBHOOK }}
- Fork this repository
- Pull your repository in local machine
- Update original repository
- Checkout "develop" branch based "remotes/origin/develop" branch
- Work on "develop" branch
- Push you changes to your repository
- Create a new Pull Request