This repo is no longer maintained moved to https://github.com/tj-actions/verify-changed-files
find-changed-files
A github action to return a list of changed files using grep
...:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# .....................
# Make changes to files
# .....................
- name: Run Find changed files.
id: changed_files
uses: jackton1/[email protected]
with:
files: "test.png, new.txt, test_directory"
- name: Perform action when files change.
if: steps.changed_files.outputs.files_changed == 'true'
run: |
echo "Do something when files have changed."
Inputs
Input | type | required | default | description |
---|---|---|---|---|
token | string |
false |
${{ github.token }} |
github action or PAT token |
files | string |
false |
Comma separated list of file/directory names to check for changes during workflow execution |