Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/svikramjeet/git-actions

GitHub Actions PHP is available in market place at https://github.com/marketplace/actions/github-action-for-slack-notification
https://github.com/svikramjeet/git-actions

github-actions notifications php php-git-actions slack

Last synced: 9 days ago
JSON representation

GitHub Actions PHP is available in market place at https://github.com/marketplace/actions/github-action-for-slack-notification

Awesome Lists containing this project

README

        

# GitHub Actions PHP for Slack notification

*Appearance on Slack :*

![Slack message](slack_message.png "Slack message")

This GitHub action code is available on github ,check it out : https://github.com/svikramjeet/git-actions.


## Usage

### New YML synthax

```yml
- name: Slack notification
env:
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }}
MESSAGE: 'Custom message'.
USERNAME: ThisIsMyUsername # Optional.
CHANNEL: general - Slack channel # Optional.
ICON: ${{ secrets.ICON }}
uses: svikramjeet/git-actions@master
```

### Environment variables

* **`USERNAME`** : From name in slack message
* **`CHANNEL`** Message to be sent to channel of the webhook.the *args* of this Action.
* **`MESSAGE`** : Custom MESSAGE

### Secrets

* **`WEBHOOK_URL`**: the Slack webhook URL (**required**, see https://api.slack.com/incoming-webhooks).
* **`ICON`**: ICON to be displayed in slack message.



That's all :heart: