Skip to content

Commit

Permalink
Merge pull request #1073 from actions/robherley/deprecate-markdownsum…
Browse files Browse the repository at this point in the history
…mary

Add & deprecate old markdownSummary export
  • Loading branch information
robherley committed May 5, 2022
2 parents 01aceea + 07242b3 commit c4ae214
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
5 changes: 5 additions & 0 deletions packages/core/src/core.ts
Expand Up @@ -364,3 +364,8 @@ export async function getIDToken(aud?: string): Promise<string> {
* Summary exports
*/
export {summary} from './summary'

/**
* @deprecated use core.summary
*/
export {markdownSummary} from './summary'
9 changes: 7 additions & 2 deletions packages/core/src/summary.ts
Expand Up @@ -354,5 +354,10 @@ class Summary {
}
}

// singleton export
export const summary = new Summary()
const _summary = new Summary()

/**
* @deprecated use `core.summary`
*/
export const markdownSummary = _summary
export const summary = _summary

0 comments on commit c4ae214

Please sign in to comment.