mirror of
https://github.com/tj-actions/changed-files
synced 2025-01-29 13:34:51 +00:00
added test
This commit is contained in:
parent
492c7bf391
commit
312a368eff
2 changed files with 37 additions and 5 deletions
30
.github/workflows/test.yml
vendored
30
.github/workflows/test.yml
vendored
|
@ -167,7 +167,7 @@ jobs:
|
|||
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
|
||||
- name: Exit with 1 if no error is raised
|
||||
if: steps.changed-files.outcome != 'failure'
|
||||
run: |
|
||||
|
@ -187,7 +187,7 @@ jobs:
|
|||
echo "${{ toJSON(steps.changed-files-specific.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
|
||||
- name: Exit with 1 if no error is raised
|
||||
if: steps.changed-files-specific.outcome != 'failure'
|
||||
run: |
|
||||
|
@ -219,7 +219,7 @@ jobs:
|
|||
echo "${{ toJSON(steps.changed-files.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
|
||||
- name: Exit with 1 if no error is raised
|
||||
if: steps.changed-files.outcome != 'failure'
|
||||
run: |
|
||||
|
@ -239,7 +239,7 @@ jobs:
|
|||
echo "${{ toJSON(steps.changed-files-specific.outputs) }}"
|
||||
shell:
|
||||
bash
|
||||
|
||||
|
||||
- name: Exit with 1 if no error is raised
|
||||
if: steps.changed-files-specific.outcome != 'failure'
|
||||
run: |
|
||||
|
@ -302,6 +302,26 @@ jobs:
|
|||
echo '${{ toJSON(steps.changed-files-dir-names.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
- name: Run changed-files since 2022-08-19
|
||||
id: changed-files-since
|
||||
uses: ./
|
||||
with:
|
||||
since: "2022-08-19"
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-since.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
- name: Run changed-files until 2022-08-20
|
||||
id: changed-files-until
|
||||
uses: ./
|
||||
with:
|
||||
until: "2022-08-20"
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-until.outputs) }}'
|
||||
shell:
|
||||
bash
|
||||
- name: Run changed-files with forward slash separator
|
||||
id: changed-files-forward-slash
|
||||
uses: ./
|
||||
|
@ -372,7 +392,7 @@ jobs:
|
|||
base_sha: d1c0ee4
|
||||
sha: 4d04215
|
||||
include_all_old_new_renamed_files: true
|
||||
- name: Show output
|
||||
- name: Show output
|
||||
run: |
|
||||
echo '${{ toJSON(steps.changed-files-all-old-new-renamed-files-1.outputs) }}'
|
||||
shell:
|
||||
|
|
12
README.md
12
README.md
|
@ -347,6 +347,18 @@ Support this project with a :star:
|
|||
uses: tj-actions/changed-files@v27
|
||||
with:
|
||||
json: "true"
|
||||
|
||||
- name: Run changed-files since 2022-08-19
|
||||
id: changed-files-since
|
||||
uses: tj-actions/changed-files@v27
|
||||
with:
|
||||
since: "2022-08-19"
|
||||
|
||||
- name: Run changed-files until 2022-08-20
|
||||
id: changed-files-until
|
||||
uses: tj-actions/changed-files@v27
|
||||
with:
|
||||
until: "2022-08-20"
|
||||
```
|
||||
|
||||
<img width="1147" alt="Screen Shot 2021-11-19 at 4 59 21 PM" src="https://user-images.githubusercontent.com/17484350/142696936-8b7ca955-7ef9-4d53-9bdf-3e0008e90c3f.png">
|
||||
|
|
Loading…
Reference in a new issue