fix imports

This commit is contained in:
Trym Lund Flogard
2021-06-02 16:20:16 +02:00
parent a87ab4cf3b
commit 1cb76bcfb4
4 changed files with 441 additions and 409 deletions

View File

@ -1,4 +1,4 @@
import core from '@actions/core';
import * as core from '@actions/core';
import { NoFileOption } from './NoFileOption';
export class Inputs {
@ -27,7 +27,7 @@ export class Inputs {
}
static get NoFileBehvaior(): NoFileOption {
const notFoundAction = core.getInput("if-no-files-found");
const notFoundAction = core.getInput("if-no-files-found") || NoFileOption.warn;
const noFileBehavior: NoFileOption = NoFileOption[notFoundAction as keyof typeof NoFileOption];
if (!noFileBehavior) {