mirror of
https://github.com/actions/toolkit
synced 2025-05-10 00:53:10 +00:00
summary: method to clear file and buffer
This commit is contained in:
parent
d27bf857e6
commit
339dd63bec
2 changed files with 17 additions and 1 deletions
|
@ -151,6 +151,15 @@ class MarkdownSummary {
|
|||
return this.emptyBuffer()
|
||||
}
|
||||
|
||||
/**
|
||||
* Clears the summary buffer and wipes the summary file
|
||||
*
|
||||
* @returns {MarkdownSummary} markdown summary instance
|
||||
*/
|
||||
async clear(): Promise<MarkdownSummary> {
|
||||
return this.emptyBuffer().write(true)
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the current summary buffer as a string
|
||||
*
|
||||
|
@ -170,7 +179,7 @@ class MarkdownSummary {
|
|||
}
|
||||
|
||||
/**
|
||||
* Clears the summary buffer without writing to summary file
|
||||
* Resets the summary buffer without writing to summary file
|
||||
*
|
||||
* @returns {MarkdownSummary} markdown summary instance
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue