Merge pull request #1073 from actions/robherley/deprecate-markdownsummary

Add & deprecate old markdownSummary export
This commit is contained in:
Rob Herley
2022-05-05 16:07:16 -04:00
committed by GitHub
2 changed files with 12 additions and 2 deletions

View File

@@ -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'

View File

@@ -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