Update test.yml
This commit is contained in:
parent
ea54bfb72a
commit
f41f9eb54b
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -19,18 +19,22 @@ jobs:
|
|||||||
id: changed-files
|
id: changed-files
|
||||||
uses: ./
|
uses: ./
|
||||||
- name: Show output
|
- name: Show output
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||||
- name: List all modified files
|
- name: List all modified files
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
for file in "${{ steps.changed-files.outputs.modified_files }}"; do
|
for file in "${{ steps.changed-files.outputs.modified_files }}"; do
|
||||||
echo $file
|
echo $file
|
||||||
done
|
done
|
||||||
- name: Run changed-files with comma separator
|
- name: Run changed-files with comma separator
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
id: changed-files-comma
|
id: changed-files-comma
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
with:
|
||||||
separator: ","
|
separator: ","
|
||||||
- name: Show output
|
- name: Show output
|
||||||
|
if: github.event_name == 'pull_request'
|
||||||
run: |
|
run: |
|
||||||
echo "${{ toJSON(steps.changed-files-comma.outputs) }}"
|
echo "${{ toJSON(steps.changed-files-comma.outputs) }}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user