mirror of
				https://github.com/trympet/nextcloud-artifacts-action.git
				synced 2025-10-31 01:56:41 +01:00 
			
		
		
		
	more logging
This commit is contained in:
		| @@ -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'; | ||||||
|  |  | ||||||
|  | try { | ||||||
|     var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior); |     var artifact = new NextcloudArtifact(Inputs.ArtifactName, Inputs.ArtifactPath, Inputs.NoFileBehvaior); | ||||||
|     artifact.run(); |     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); | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Trym Lund Flogard
					Trym Lund Flogard