Skip to content

Commit 9e902e2

Browse files
Release: v0.8.1 (#114)
## What's Changed * Allow extending writeSecureFile with custom options by @sethvargo in #113 **Full Changelog**: v0.8.0...16ded4d
1 parent 16ded4d commit 9e902e2

4 files changed

Lines changed: 11 additions & 6 deletions

File tree

docs/fs/functions/removeFile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ Use #forceRemove instead.
2929

3030
## Source
3131

32-
[fs.ts:84](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L84)
32+
[fs.ts:92](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L92)

docs/fs/functions/writeSecureFile.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
# Function: writeSecureFile()
88

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

2626
Data to write to file.
2727

28+
**options?**: `ObjectEncodingOptions` & `object`
29+
30+
additional options to pass to writeFile. The default options
31+
are permissions of 0640, write-exclusive, and flush-on-success.
32+
2833
## Returns
2934

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

3439
## Source
3540

36-
[fs.ts:66](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L66)
41+
[fs.ts:68](https://github.com/google-github-actions/actions-utils/blob/main/src/fs.ts#L68)

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@google-github-actions/actions-utils",
3-
"version": "0.8.0",
3+
"version": "0.8.1",
44
"description": "Helpers and utilities that are shared among Google GitHub Actions",
55
"author": "Google LLC",
66
"license": "Apache-2.0",

0 commit comments

Comments
 (0)