Skip to content

Commit

Permalink
Added retries to SetCloudBuildVariable for GitHubActions
Browse files Browse the repository at this point in the history
Updated the GitHubActions class to adopt retries in the SetCloudBuildVariable method.
  • Loading branch information
danjagnow committed Jan 18, 2021
1 parent bd32874 commit 191378a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -28,7 +28,7 @@ internal class GitHubActions : ICloudBuild

public IReadOnlyDictionary<string, string> SetCloudBuildVariable(string name, string value, TextWriter stdout, TextWriter stderr)
{
File.AppendAllText(EnvironmentFile, $"{Environment.NewLine}{name}={value}{Environment.NewLine}");
Utilities.FileOperationWithRetry(() => File.AppendAllText(EnvironmentFile, $"{Environment.NewLine}{name}={value}{Environment.NewLine}"));
return GetDictionaryFor(name, value);
}

Expand Down

0 comments on commit 191378a

Please sign in to comment.