https://github.com/mirantis/filechange-slack-notifier-gh-action
https://github.com/mirantis/filechange-slack-notifier-gh-action
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/mirantis/filechange-slack-notifier-gh-action
- Owner: Mirantis
- Created: 2024-01-11T15:11:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T09:30:59.000Z (over 1 year ago)
- Last Synced: 2025-01-17T12:17:49.481Z (4 months ago)
- Language: Shell
- Size: 1.95 KB
- Stars: 0
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Filechange Slack Notifier
This action allows the user to send custom Slack notifications based on repo path changes
## Inputs
## `slack-webhook-url`
**Required** The SLACK_WEBHOOK_URL which is associated with the SLACK channel you want to post to.
## `slack-channel-name`
**Required** The channel name where you want to post the message to.
## `message-title`
**Required** The title of the message.
## `message`
**Required** The message to post.
## `notify-users`
**Required** The users to be notified via @ tag in the message.
## `message-color`
**Required** The color of the message in hex format.
## Usage
```yaml
name: Notify on Slack on subscribed folder
on:
pull_request:
paths:
- 'test/*'
jobs:
my_job:
runs-on: ubuntu-latest
steps:
- name: Subscribe to Path - TEAM 1
uses: mirantis/sub-to-path@v1
with:
slack-webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
slack-channel-name: "test-channel"
message-title: "Test TITLE"
message: "Test action"
notify-users: "@testuser"
```