more logging

This commit is contained in:
Trym Lund Flogard 2021-06-02 18:36:35 +02:00
parent 77a901b885
commit 4e614273b8
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,10 @@
import { Inputs } from './Inputs';
import { NextcloudArtifact } from './nextcloud/NextcloudArtifact';
import * as core from '@actions/core';
var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior);
artifact.run();
try {
var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior);
artifact.run();
} catch (error) {
core.setFailed(error.message);
}

View File

@ -37,10 +37,14 @@ export class NextcloudClient {
}
public async uploadFiles(files: string[]) {
core.info("Begin uploading files...");
const spec = this.uploadSpec(files);
core.info("Zipping files...");
var zip = await this.zipFiles(spec);
core.info("Uploading to Nextcloud...");
const path = await this.upload(zip);
core.info("Sharing file...");
await this.shareFile(path);
}