Skip to content

Commit

Permalink
use unique name for archive zip
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Feb 18, 2024
1 parent cb8bed3 commit cb8ba3e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Plogon/BuildProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ public async Task<BuildResult> ProcessTask(BuildTask task, bool commit, string?

var taskFolderName = $"{task.InternalName}-{task.Manifest.Plugin.Commit}-{task.Channel}";
var taskRoot = this.workFolder.CreateSubdirectory(taskFolderName);
Log.Verbose("taskRoot: {TaskRoot}", taskRoot.FullName);
var work = taskRoot.CreateSubdirectory("work");
var archive = taskRoot.CreateSubdirectory("archive");
var output = taskRoot.CreateSubdirectory("output");
Expand Down Expand Up @@ -825,7 +826,7 @@ public async Task<BuildResult> ProcessTask(BuildTask task, bool commit, string?

// Create archive zip
var archiveZipFile =
new FileInfo(Path.Combine(this.workFolder.FullName, $"{archive.Name}.zip"));
new FileInfo(Path.Combine(this.workFolder.FullName, $"{taskFolderName}-{archive.Name}.zip"));
ZipFile.CreateFromDirectory(archive.FullName, archiveZipFile.FullName);

var diff = await GetPluginDiff(work, task, otherTasks);
Expand Down Expand Up @@ -1123,6 +1124,7 @@ await this.dockerClient.Containers.RemoveContainerAsync(containerCreateResponse.
{
// Cleanup work folder to save storage space on actions
work.Delete(true);
archiveZipFile.Delete();
}
catch (Exception ex)
{
Expand Down

0 comments on commit cb8ba3e

Please sign in to comment.