mirror of
https://github.com/trympet/nextcloud-artifacts-action.git
synced 2025-04-28 13:46:09 +02:00
more logging
This commit is contained in:
parent
77a901b885
commit
4e614273b8
@ -1,5 +1,10 @@
|
|||||||
import { Inputs } from './Inputs';
|
import { Inputs } from './Inputs';
|
||||||
import { NextcloudArtifact } from './nextcloud/NextcloudArtifact';
|
import { NextcloudArtifact } from './nextcloud/NextcloudArtifact';
|
||||||
|
import * as core from '@actions/core';
|
||||||
|
|
||||||
var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior);
|
try {
|
||||||
artifact.run();
|
var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior);
|
||||||
|
artifact.run();
|
||||||
|
} catch (error) {
|
||||||
|
core.setFailed(error.message);
|
||||||
|
}
|
||||||
|
@ -37,10 +37,14 @@ export class NextcloudClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async uploadFiles(files: string[]) {
|
public async uploadFiles(files: string[]) {
|
||||||
|
core.info("Begin uploading files...");
|
||||||
const spec = this.uploadSpec(files);
|
const spec = this.uploadSpec(files);
|
||||||
|
core.info("Zipping files...");
|
||||||
var zip = await this.zipFiles(spec);
|
var zip = await this.zipFiles(spec);
|
||||||
|
|
||||||
|
core.info("Uploading to Nextcloud...");
|
||||||
const path = await this.upload(zip);
|
const path = await this.upload(zip);
|
||||||
|
core.info("Sharing file...");
|
||||||
await this.shareFile(path);
|
await this.shareFile(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user