Skip to content

Commit

Permalink
dont change date-stamp at midnight
Browse files Browse the repository at this point in the history
  • Loading branch information
soofstad committed Mar 15, 2021
1 parent fe2b92a commit 21da814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/Api.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ public class Api
private readonly string _migrationsUrl = $"{Config.GithubURL}/orgs/{Config.Organization}/migrations";
private readonly string _repoUrl = $"{Config.GithubURL}/orgs/{Config.Organization}/repos";

private readonly string DateToday = $"{DateTime.Now:dd_MM_yyyy}";

public Api()
{
Client.DefaultRequestHeaders.Add("Authorization", $"Bearer {Config.GithubToken}");
Expand Down Expand Up @@ -137,7 +139,7 @@ public async Task<string> DownloadArchive(int migrationId, int volume, List<stri
// '%2F' is used to encode /. That way we do not need to deal with creating all necessary folders,
// in order to have the same structure in Azure
var fileName =
$"./tmp/{DateTime.Now:dd_MM_yyyy}%2Fvol{paddedVolume}-{Utility.HashStingArray(repoList)}-{migrationId}.tar.gz";
$"./tmp/{DateToday}%2Fvol{paddedVolume}-{Utility.HashStingArray(repoList)}-{migrationId}.tar.gz";
SetPreviewHeader();
Console.WriteLine($"Downloading archive {migrationId}");
var attempts = 1;
Expand Down
2 changes: 1 addition & 1 deletion src/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1

0 comments on commit 21da814

Please sign in to comment.