1
0
Fork 0

Rename command import in core.ts

pull/4/head
Jonathan Clem 2019-05-21 15:26:44 -04:00
parent ab9b8a0c87
commit b05738788e
No known key found for this signature in database
GPG Key ID: 3C201F0BBD6B3B77
1 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
import {ExitCode} from '@actions/exit' import {ExitCode} from '@actions/exit'
import * as intm from './command' import {issue, issueCommand} from './command'
/** /**
* Interface for getInput options * Interface for getInput options
@ -20,7 +20,7 @@ export interface InputOptions {
*/ */
export function exportVariable(name: string, val: string) { export function exportVariable(name: string, val: string) {
process.env[name] = val process.env[name] = val
intm.issueCommand('set-env', {name}, val) issueCommand('set-env', {name}, val)
} }
/** /**
@ -30,7 +30,7 @@ export function exportVariable(name: string, val: string) {
*/ */
export function exportSecret(name: string, val: string) { export function exportSecret(name: string, val: string) {
exportVariable(name, val) exportVariable(name, val)
intm.issueCommand('set-secret', {}, val) issueCommand('set-secret', {}, val)
} }
/** /**
@ -80,7 +80,7 @@ export function setFailed(message: string) {
* @param message debug message * @param message debug message
*/ */
export function debug(message: string) { export function debug(message: string) {
intm.issueCommand('debug', {}, message) issueCommand('debug', {}, message)
} }
/** /**
@ -88,7 +88,7 @@ export function debug(message: string) {
* @param message error issue message * @param message error issue message
*/ */
export function error(message: string) { export function error(message: string) {
intm.issue('error', message) issue('error', message)
} }
/** /**
@ -96,5 +96,5 @@ export function error(message: string) {
* @param message warning issue message * @param message warning issue message
*/ */
export function warning(message: string) { export function warning(message: string) {
intm.issue('warning', message) issue('warning', message)
} }