This action allows the user to send custom Slack notifications based on repo path changes
Required The SLACK_WEBHOOK_URL which is associated with the SLACK channel you want to post to.
Required The channel name where you want to post the message to.
Required The title of the message.
Required The message to post.
Required The users to be notified via @ tag in the message.
Required The color of the message in hex format.
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"