Skip to content

Releases: DamianReeves/write-file-action

v1.3 - Upgrade to Node.js 20

08 Feb 17:14
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.2...v1.3

v1.2

30 Nov 14:30
Compare
Choose a tag to compare

What's Changed

Full Changelog: v1.1...v1.2

Fix docs, examples, dependabot and such

08 Jul 23:44
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0...v1.1

v1.0

23 Apr 09:52
e19fd87
Compare
Choose a tag to compare

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 exists
  • append - if the file exists, it will be appended to
  • preserve - 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