Skip to content

About

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

Resources

Stars

0 stars

Watchers

5 watching

Forks

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

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

Stars

0 stars

Watchers

5 watching

Forks

Releases

Packages

Used by

Contributors

Languages