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

842
dist/index.js vendored

File diff suppressed because it is too large Load Diff

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) {

View File

@ -1,4 +1,4 @@
import core from '@actions/core';
import * as core from '@actions/core';
import { FileFinder } from '../FileFinder';
import { Inputs } from '../Inputs';
import { NextcloudClient } from './NextcloudClient';

View File

@ -1,6 +1,6 @@
import * as fsSync from 'fs'
import * as path from 'path'
import core from '@actions/core';
import * as core from '@actions/core';
import * as os from 'os';
import { randomUUID } from 'crypto';
import * as archiver from 'archiver';