Skip to content

Commit

Permalink
Merge pull request #556 from danjagnow/features/github-actions-set-cl…
Browse files Browse the repository at this point in the history
…oud-variable-retry

Added retries to SetCloudBuildVariable for GitHubActions
  • Loading branch information
AArnott committed Jan 18, 2021
2 parents a4d9577 + 191378a commit 0637ff0
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 0637ff0

Please sign in to comment.