3
0
Fork 0
mirror of https://github.com/tj-actions/changed-files synced 2024-12-17 23:44:46 +00:00
changed-files/.github/workflows/test.yml
2021-03-05 07:28:53 -05:00

39 lines
904 B
YAML

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
name: Test changed-files
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run changed-files with defaults
id: changed-files
uses: ./
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files.outputs) }}"
- name: Run changed-files with comma separator
id: changed-files-comma
uses: ./
with:
separator: ","
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files-comma.outputs) }}"
- name: Run changed-files with pipe
id: changed-files-pipe
uses: ./
with:
separator: "|"
- name: Show output
run: |
echo "${{ toJSON(steps.changed-files-pipe.outputs) }}"