Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

ArkoseLabs/write-file-action

 
 

Repository files navigation

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: ${{ env.home}}/.bashrc
  contents: |
    echo "Hello World!"
  write-mode: append

About

A GitHub action to write a file

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%