fix promises import

This commit is contained in:
Trym Lund Flogard 2021-06-02 16:09:37 +02:00
parent 1259b887e0
commit 314b7642ee
3 changed files with 388 additions and 393 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
lib
# Logs
logs
*.log

776
dist/index.js vendored

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,4 @@
import * as fsSync from 'fs'
import * as fs from 'fs/promises'
import * as path from 'path'
import core from '@actions/core';
import * as os from 'os';
@ -10,6 +9,8 @@ import fetch, { HeadersInit } from 'node-fetch';
import { Inputs } from '../Inputs';
import btoa from 'btoa';
const fs = fsSync.promises;
interface FileSpec {
absolutePath: string,
uploadPath: string