feat: add support for json formatted output. (#557)

This commit is contained in:
Tonye Jack
2022-08-03 14:01:40 -06:00
committed by GitHub
parent 3020c439b0
commit fb62fbd197
5 changed files with 141 additions and 36 deletions

View File

@@ -332,6 +332,17 @@ jobs:
echo '${{ toJSON(steps.changed-files-pipe.outputs) }}'
shell:
bash
- name: Run changed-files with json output
id: changed-files-json
uses: ./
with:
json: true
- name: Show output
run: |
echo '${{ toJSON(steps.changed-files-json.outputs) }}'
echo '${{ toJSON(steps.changed-files-json.outputs.all_changed_files) }}'
shell:
bash
- name: Run changed-files with comma separator
id: changed-files-comma
uses: ./