2021-03-05 02:36:52 +00:00
|
|
|
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
|
2021-03-05 12:28:53 +00:00
|
|
|
- name: Run changed-files with defaults
|
2021-03-05 03:36:52 +00:00
|
|
|
id: changed-files
|
2021-03-05 02:36:52 +00:00
|
|
|
uses: ./
|
2021-03-05 03:36:52 +00:00
|
|
|
- name: Show output
|
|
|
|
run: |
|
2021-03-05 11:17:27 +00:00
|
|
|
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
2021-03-05 12:28:53 +00:00
|
|
|
- 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) }}"
|