Skip to content

Commit 6ff960a

Browse files
authored
Update README.md (#235)
1 parent 916b89b commit 6ff960a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414

1515
GitHub Action to read the contents of a file
1616

17-
> **Warning**
17+
> [!Warning]
1818
>
19-
> **Disclaimer:** This version was created because the [original (V1)](https://github.com/andstor/file-reader-action) has not been updated by the creator for a while.
19+
> **Disclaimer:** This version was created because the creator has not updated the [original (V1)](https://github.com/andstor/file-reader-action) for a while.
2020
21-
This is a GitHub Action that reads the contents of a file. Give it a path to a file, and it will provide you with its contents, accessible through an output variable.
21+
This is a GitHub Action that reads a file's contents. If you give it a path to a file, it will provide its contents and file size, accessible through an output variable.
2222

2323
## Usage
2424

@@ -43,6 +43,7 @@ The following input variable options can/must be configured:
4343
## Outputs
4444

4545
- `contents`: The contents of the file.
46+
- `size`: The size of the file.
4647

4748
## Example
4849

@@ -65,6 +66,9 @@ jobs:
6566
6667
- name: File contents
6768
run: echo "${ steps.read_file.outputs.contents }"
69+
70+
- name: File size
71+
run: echo "${ steps.read_file.outputs.size }"
6872
```
6973

7074
## License

0 commit comments

Comments
 (0)