From a2078cf37c61a64ba21c028b02ef7d2427c0f1a6 Mon Sep 17 00:00:00 2001 From: Bryan MacFarlane Date: Sat, 24 Aug 2019 09:22:38 -0400 Subject: [PATCH] raising not implemented earlier --- packages/core/package.json | 2 +- packages/core/src/core.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/core/package.json b/packages/core/package.json index 588dd917..3a2b7d23 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@actions/core", - "version": "1.0.0", + "version": "1.0.1", "description": "Actions core lib", "keywords": [ "github", diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index 64ec017f..d67eccdf 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -46,6 +46,9 @@ export function exportVariable(name: string, val: string): void { */ export function exportSecret(name: string, val: string): void { exportVariable(name, val) + // the runner will error with not implemented. + // leaving the function but raising the error earlier + throw new Error("Not implemented."); issueCommand('set-secret', {}, val) }