Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/joutvhu/write-file
GitHub Action to write file
https://github.com/joutvhu/write-file
actions encoding file github write
Last synced: 7 days ago
JSON representation
GitHub Action to write file
- Host: GitHub
- URL: https://github.com/joutvhu/write-file
- Owner: joutvhu
- License: mit
- Created: 2021-06-16T19:23:35.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-28T07:02:10.000Z (over 1 year ago)
- Last Synced: 2024-10-12T23:47:50.556Z (about 1 month ago)
- Topics: actions, encoding, file, github, write
- Language: JavaScript
- Homepage:
- Size: 267 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Write File
GitHub Action to write file.
## Usage
See [action.yml](action.yml)
## 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`.
- `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- `encoding` **Optional** Encoding of the contents.
## Example
```yaml
steps:
- uses: joutvhu/write-file@v1
with:
path: secret-key.gpg
contents: ${{ secrets.GPG_SECRET_KEY }}
write_mode: overwrite
encoding: base64
```