Update README.md
This commit is contained in:
parent
c3e1f46ee4
commit
1e674fcfac
48
README.md
48
README.md
@ -318,6 +318,28 @@ See [outputs](#outputs) for a list of all available outputs.
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
<details>
|
||||||
|
<summary>Get all changed files and write the outputs to a txt file</summary>
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
...
|
||||||
|
|
||||||
|
- name: Get changed files and write the outputs to a txt file
|
||||||
|
id: changed-files-write-output-files-txt
|
||||||
|
uses: ./
|
||||||
|
with:
|
||||||
|
write_output_files: true
|
||||||
|
|
||||||
|
- name: Verify the contents of the .github/outputs/added_files.txt file
|
||||||
|
run: |
|
||||||
|
cat .github/outputs/added_files.txt
|
||||||
|
...
|
||||||
|
```
|
||||||
|
|
||||||
|
See [action.yml](action.yml#L264) for a list of all available keys.
|
||||||
|
|
||||||
|
</details>
|
||||||
|
|
||||||
<details>
|
<details>
|
||||||
<summary>Get all changed files and write the outputs to a json file</summary>
|
<summary>Get all changed files and write the outputs to a json file</summary>
|
||||||
|
|
||||||
@ -331,31 +353,9 @@ See [outputs](#outputs) for a list of all available outputs.
|
|||||||
json: true
|
json: true
|
||||||
write_output_files: true
|
write_output_files: true
|
||||||
|
|
||||||
- name: Verify the contents of the .github/added_files.json file
|
- name: Verify the contents of the .github/outputs/added_files.json file
|
||||||
run: |
|
run: |
|
||||||
cat .github/added_files.json
|
cat .github/outputs/added_files.json
|
||||||
...
|
|
||||||
```
|
|
||||||
|
|
||||||
See [action.yml](action.yml#L264) for a list of all available keys.
|
|
||||||
|
|
||||||
</details>
|
|
||||||
|
|
||||||
<details>
|
|
||||||
<summary>Get all changed files and write the outputs to a txt file</summary>
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
...
|
|
||||||
|
|
||||||
- name: Get changed files and write the outputs to a txt file
|
|
||||||
id: changed-files-write-output-files-txt
|
|
||||||
uses: ./
|
|
||||||
with:
|
|
||||||
write_output_files: true
|
|
||||||
|
|
||||||
- name: Verify the contents of the .github/added_files.txt file
|
|
||||||
run: |
|
|
||||||
cat .github/added_files.txt
|
|
||||||
...
|
...
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user