mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-17 19:17:45 +00:00
Merge branch 'main' into updated-the-all-changed
This commit is contained in:
commit
56c6262bb9
1 changed files with 2 additions and 1 deletions
3
.github/workflows/test.yml
vendored
3
.github/workflows/test.yml
vendored
|
@ -16,6 +16,7 @@ jobs:
|
|||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Run changed-files with defaults
|
||||
if: github.event_name == 'pull_request'
|
||||
id: changed-files
|
||||
uses: ./
|
||||
- name: Show output
|
||||
|
@ -29,7 +30,7 @@ jobs:
|
|||
echo $file
|
||||
done
|
||||
- name: Run step when README.md changes
|
||||
if: github.event_name == 'pull_request' && contains(fromJSON(${{ steps.changed-files.outputs.modified_files }}), 'README.md')
|
||||
if: contains(fromJSON("${{ steps.changed-files.outputs.modified_files }}"), 'README.md')
|
||||
run: |
|
||||
echo "Your README.md has been modified."
|
||||
- name: Run changed-files with comma separator
|
||||
|
|
Loading…
Reference in a new issue