Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/svikramjeet/git-actions
- Owner: svikramjeet
- License: mit
- Created: 2019-09-21T10:04:27.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-27T11:39:32.000Z (over 4 years ago)
- Last Synced: 2024-03-15T03:02:42.845Z (10 months ago)
- Topics: github-actions, notifications, php, php-git-actions, slack
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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: