Skip to content

pheel/path-watcher-action

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

path-watcher-action

Given a comma-separated list of globs, returns whether the head commit that triggered the action involves a change in any of the input paths.

Usage:

on: [push]

jobs:
  job:
    runs-on: ubuntu-latest
    steps:
      - id: modified
        uses: pheel/path-watcher-action@v1
        with:
          github_token: ${{ secrets.GITHUB_TOKEN }} # no need to set this secret, it is always available!
          paths: 'dir1/**/*,dir2/**/*'
          return_files: true # if true, return an array of the modified paths. defaults to false.
      - if: steps.modified.outputs.modified
        run: echo "Hey some change happened in one of your watched paths!"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •