danielmcconville/Gist Sync File
Creates, updates, deletes or downloads a file from a gist
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| gistPat | personal access token with read/write access for the gist | yes | — |
| action | action to perform, either "create", "delete", "update" or "download" | yes | — |
| filename | name of the file containing the content to upload or download, can be a file path such as `dir/subdir/file.md` | yes | — |
| gistId | id of the gist - only required for delete, update and download | no | — |
| createIfNotExists | optional, used with the download action. Create the gist if it does not exist, you must supply a filename if setting this to true | no | — |
| fileContent | optional used with the download actions where createIfNotExists is set to true. Content of the file to create if none exists. Defaults to '{}' | no | — |
Outputs
| name | description |
|---|---|
| fileContent | content of the file for download and update actions |
| gistId | id of the gist for create action |