GitHub Action to write file.
See action.yml
-
pathRequired The path to the file to write. -
contentsRequired The contents of the file. -
write_modeOptional 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
-
encodingOptional 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