diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 088d8de8..01253f78 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -28,6 +28,10 @@ jobs: for file in "${{ steps.changed-files.outputs.modified_files }}"; do echo $file done + - name: Run step when README.md changes + if: github.event_name == 'pull_request' && contains(${{ steps.changed-files.outputs.modified_files }}, 'README.md') + run: | + echo "Your README.md has been modified." - name: Run changed-files with comma separator if: github.event_name == 'pull_request' id: changed-files-comma diff --git a/README.md b/README.md index 5819728a..26d9f49c 100644 --- a/README.md +++ b/README.md @@ -67,6 +67,10 @@ Using the default separator. | all_changed_files | `string` | 'new.txt other.png ...' | Select all paths (*) are selected if there
is any file that matches other
criteria in the comparison;
if there is no file that
matches other criteria,
nothing is selected. | +## Example + +![Screen Shot 2021-04-02 at 8 20 04 AM](https://user-images.githubusercontent.com/17484350/113415111-828e4b00-938c-11eb-9129-678922e39e5c.png) + * Free software: [MIT license](LICENSE)