GitHub Action to write file.
See action.yml
-
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
, orpreserve
.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
-
encoding
Optional Encoding of the contents.
steps:
- uses: joutvhu/write-file@v1
with:
path: secret-key.gpg
contents: ${{ secrets.GPG_SECRET_KEY }}
write_mode: overwrite
encoding: base64