mirror of https://github.com/actions/toolkit
Fix namespace use in core.ts
parent
062a6bb046
commit
c3ed3b105f
|
@ -40,7 +40,7 @@ export function setSecret(name: string, val: string) {
|
||||||
* @param options optional. See InputOptions.
|
* @param options optional. See InputOptions.
|
||||||
* @returns string
|
* @returns string
|
||||||
*/
|
*/
|
||||||
export function getInput(name: string, options?: im.InputOptions): string {
|
export function getInput(name: string, options?: InputOptions): string {
|
||||||
const val: string =
|
const val: string =
|
||||||
process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''
|
process.env[`INPUT_${name.replace(' ', '_').toUpperCase()}`] || ''
|
||||||
if (options && options.required && !val) {
|
if (options && options.required && !val) {
|
||||||
|
|
Loading…
Reference in New Issue