{"id":19032732,"url":"https://github.com/joutvhu/write-file","last_synced_at":"2025-02-21T20:28:40.281Z","repository":{"id":49461011,"uuid":"377604864","full_name":"joutvhu/write-file","owner":"joutvhu","description":"GitHub Action to write file","archived":false,"fork":false,"pushed_at":"2023-07-28T07:02:10.000Z","size":273,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-19T18:42:26.093Z","etag":null,"topics":["actions","encoding","file","github","write"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/joutvhu.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-06-16T19:23:35.000Z","updated_at":"2023-11-25T06:15:15.000Z","dependencies_parsed_at":"2024-11-08T21:31:13.315Z","dependency_job_id":null,"html_url":"https://github.com/joutvhu/write-file","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fwrite-file","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fwrite-file/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fwrite-file/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/joutvhu%2Fwrite-file/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/joutvhu","download_url":"https://codeload.github.com/joutvhu/write-file/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239933875,"owners_count":19720843,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","encoding","file","github","write"],"created_at":"2024-11-08T21:30:45.233Z","updated_at":"2025-02-21T20:28:40.262Z","avatar_url":"https://github.com/joutvhu.png","language":"JavaScript","readme":"# Write File\n\nGitHub Action to write file.\n\n## Usage\n\nSee [action.yml](action.yml)\n\n## Inputs\n\n- `path` **Required** The path to the file to write.\n\n- `contents` **Required** The contents of the file.\n\n- `write_mode` **Optional** The mode of writing to use: `overwrite`, `append`, or `preserve`.\n  - `overwrite` - overwrite the file if it exists\n  - `append` - if the file exists, it will be appended to\n  - `preserve` - if the file already exists the contents will not be written to\n\n- `encoding`  **Optional** Encoding of the contents.\n\n## Example\n\n```yaml\nsteps:\n  - uses: joutvhu/write-file@v1\n    with:\n      path: secret-key.gpg\n      contents: ${{ secrets.GPG_SECRET_KEY }}\n      write_mode: overwrite\n      encoding: base64\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fwrite-file","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoutvhu%2Fwrite-file","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoutvhu%2Fwrite-file/lists"}