add date to artefacts and pause after completion
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 2m17s
Gitea Actions Demo / Explore-Gitea-Actions (8.0.x) (push) Successful in 2m17s
This commit is contained in:
+10
-4
@@ -22,14 +22,17 @@ using Docker.DotNet;
|
|||||||
private static string ticketNumber;
|
private static string ticketNumber;
|
||||||
public static string FolderPath;
|
public static string FolderPath;
|
||||||
|
|
||||||
|
//date of today
|
||||||
|
public readonly static DateTime datetoday = DateTime.Now;
|
||||||
|
public readonly static string todayDateInline = datetoday.ToString("yyyyMMdd");
|
||||||
|
|
||||||
|
|
||||||
//static void CompressFolder(string sourceFolder,string destinationFolder, string sourceTarget, string filenameTarget)
|
//static void CompressFolder(string sourceFolder,string destinationFolder, string sourceTarget, string filenameTarget)
|
||||||
static void CompressFolder(string sourceFolder,string destinationFolder, Dictionary<string,string> sourceTargets)
|
static void CompressFolder(string sourceFolder,string destinationFolder, Dictionary<string,string> sourceTargets)
|
||||||
{
|
{
|
||||||
|
|
||||||
//string compressionTarget = Path.Combine(sourceFolder, sourceTarget);
|
//string compressionTarget = Path.Combine(sourceFolder, sourceTarget);
|
||||||
//string destinationPath = Path.Combine(destinationFolder, filenameTarget);
|
//string destinationPath = Path.Combine(destinationFolder, filenameTarget);
|
||||||
string destinationPath = Path.Combine(destinationFolder, "artefacts-"+ticketNumber+".zip");
|
string destinationPath = Path.Combine(destinationFolder, "artefacts-"+ticketNumber+"-"+todayDateInline+".zip");
|
||||||
|
|
||||||
|
|
||||||
//for debug pruposes
|
//for debug pruposes
|
||||||
@@ -189,9 +192,12 @@ using Docker.DotNet;
|
|||||||
|
|
||||||
CompressFolder(sourceFolder:applicationPath,destinationFolder:FolderPath,SoftwareList);
|
CompressFolder(sourceFolder:applicationPath,destinationFolder:FolderPath,SoftwareList);
|
||||||
|
|
||||||
|
//Add a pause after everything is completed
|
||||||
|
Console.WriteLine("==================================================");
|
||||||
|
Console.WriteLine("Copy done");
|
||||||
|
Console.WriteLine("==================================================");
|
||||||
|
|
||||||
|
Console.ReadLine();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user