Skip to content

Latest commit

 

History

History
27 lines (24 loc) · 1.22 KB

File metadata and controls

27 lines (24 loc) · 1.22 KB

Recognize Change Notification Action

This action consists of a composite set of actions that allow you to be notified when a certain file or directory within your repository changes. Currently, this action only supports email notifications. You can specify a connection string that will be used to send the email. The connection string should be a secret in your repository.

Example

on:
  push:
    branches:
      - develop

jobs:
  check-changes:
    runs-on: ubuntu-latest
    steps:
      - uses: recognizegroup/recognize-change-notification-action@v1
        with:
          notification-type: email # Type of notification
          path: src/file # The path to the file or directory that should be checked for changes
          mail-connection-url: ${{ secrets.SMTP_CONNECTION_STRING }} # The connection string to use to send the email (smtp+starttls://user:password@server:port, smtp://user:password@server:port)
          mail-subject: File Changed # The subject of the email
          mail-from-name: Example # The from name of the email
          mail-from-address: [email protected] # The from address of the email
          mail-to: [email protected], [email protected] # The to address of the email, separated by commas