mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-11 04:40:00 +08:00
Fix namespace use in core.ts
This commit is contained in:
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…
x
Reference in New Issue
Block a user