Releases: DamianReeves/write-file-action
Releases · DamianReeves/write-file-action
v1.3 - Upgrade to Node.js 20
v1.2
Fix docs, examples, dependabot and such
What's Changed
- Bump @actions/core from 1.2.3 to 1.2.6 by @dependabot in #3
- docs: add @master in example workflow by @PaulRBerg in #7
- Updated README with new example usage by @alexandre97costa in #10
- docs: update example contents by @PaulRBerg in #6
- Fix issues with ci by @DamianReeves in #11
- Change file created by test by @DamianReeves in #12
New Contributors
- @dependabot made their first contribution in #3
- @PaulRBerg made their first contribution in #7
- @alexandre97costa made their first contribution in #10
- @DamianReeves made their first contribution in #11
Full Changelog: v1.0...v1.1
v1.0
Write File Action
This action writes a file.
Inputs
path
Required The path to the file to write.
contents
Required The contents of the file.
write-mode
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
Outputs
size
Returns the file size.
Example usage
uses: DamianReeves/write-file-action
with:
path: /home/runner/.bashrc
contents: |
####################################
# Added Content Here
####################################
write-mode: append