Skip to content

datamonsters/check-folder-updated-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

check-folder-updated

You can trigger job steps on changes of folders or certain files in you project. It takes diff with the previous commit.

Usage

See action.yml

name:_Your-Workflow
on: [push]
jobs:
  build:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
      with:
        # ! It is important option beacuse the action will take diff between HEAD and HEAD^
        fetch-depth: 2

    - name: Check updates
      id: check_folder
      uses: datamonsters/check-folder-updated-action@master
      with:
        folder: path/folder[/file]

    - name: Your target step
      if: steps.check_folder.outputs.has_changes == 'Yes'
      run: echo "Hello world!" 

License

The scripts and documentation in this project are released under the MIT License

About

GitHub Action that checks if there are changes in the given folder in the last commit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published