Skip to content

Commit

Permalink
Release: v0.8.1 (#114)
Browse files Browse the repository at this point in the history
## What's Changed
* Allow extending writeSecureFile with custom options by @sethvargo in
#113


**Full Changelog**:
v0.8.0...16ded4d
  • Loading branch information
google-github-actions-bot committed May 24, 2024
1 parent 16ded4d commit 9e902e2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/fs/functions/removeFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ Use #forceRemove instead.

## Source

[fs.ts:84](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L84)
[fs.ts:92](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L92)
9 changes: 7 additions & 2 deletions docs/fs/functions/writeSecureFile.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

# Function: writeSecureFile()

> **writeSecureFile**\<`T`\>(`outputPath`, `data`): `Promise`\<`T`\>
> **writeSecureFile**\<`T`\>(`outputPath`, `data`, `options`?): `Promise`\<`T`\>
writeSecureFile writes a file to disk with 0640 permissions and locks the
file during writing.
Expand All @@ -25,6 +25,11 @@ Path in which to create the secure file.

Data to write to file.

**options?**: `ObjectEncodingOptions` & `object`

additional options to pass to writeFile. The default options
are permissions of 0640, write-exclusive, and flush-on-success.

## Returns

`Promise`\<`T`\>
Expand All @@ -33,4 +38,4 @@ Path to written file.

## Source

[fs.ts:66](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L66)
[fs.ts:68](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L68)
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@google-github-actions/actions-utils",
"version": "0.8.0",
"version": "0.8.1",
"description": "Helpers and utilities that are shared among Google GitHub Actions",
"author": "Google LLC",
"license": "Apache-2.0",
Expand Down

0 comments on commit 9e902e2

Please sign in to comment.