You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Write File
v1.0
This action writes a file.
Required The path to the file to write.
Required The contents of the file.
Optional The mode of writing to use: overwrite
, append
, or preserve
.
Modes:
overwrite
- overwrite the file if it existsappend
- if the file exists, it will be appended topreserve
- if the file already exists the contents will not be written to
Default append
Returns the file size.
uses: DamianReeves/write-file-action
with:
path: ${{ env.home}}/.bashrc
contents: |
echo "Hello World!"
write-mode: append