Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

macmade/action-slack

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
Open more actions menu

Repository files navigation

action-slack

Issues Status License
Contact Sponsor

About

GitHub Action to send Slack notifications.

Notifications

Usage:

- uses: macmade/action-slack@v1.0.0

Inputs:

  • channel: String
    The Slack channel to use for the notifications (eg. #ci).

  • status: String
    The job status: ${{ job.status }}.

  • title: String
    A string to use as notification title.

  • text: String
    An optional string to use as notification message.

Environment:

  • SLACK_WEBHOOK_URL:
    The URL of the Slack incoming webhook.

Complete example:

name:   test
on:     [push]
jobs:
    test:
        runs-on: ubuntu-latest
        steps:
        
            - uses: macmade/action-slack@v1.0.0
              if:   ${{ always() }}
              env:
                SLACK_WEBHOOK_URL:  ${{ secrets.SLACK_WEBHOOK_URL }}
              with:
                channel:    '#ci'
                status:     ${{ job.status }}
                title:      'hello, world'
                text:       'This is a test message...'

License

Project is released under the terms of the MIT License.

Repository Infos

Owner:          Jean-David Gadina - XS-Labs
Web:            www.xs-labs.com
Blog:           www.noxeos.com
Twitter:        @macmade
GitHub:         github.com/macmade
LinkedIn:       ch.linkedin.com/in/macmade/
StackOverflow:  stackoverflow.com/users/182676/macmade

About

GitHub Action to send Slack notifications.

Topics

Resources

Code of conduct

Stars

Watchers

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.