mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2026-04-22 07:18:03 +08:00
raising not implemented earlier
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@actions/core",
|
"name": "@actions/core",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "Actions core lib",
|
"description": "Actions core lib",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"github",
|
"github",
|
||||||
|
|||||||
@@ -46,6 +46,9 @@ export function exportVariable(name: string, val: string): void {
|
|||||||
*/
|
*/
|
||||||
export function exportSecret(name: string, val: string): void {
|
export function exportSecret(name: string, val: string): void {
|
||||||
exportVariable(name, val)
|
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)
|
issueCommand('set-secret', {}, val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user