Skip to content

Commit 191378a

Browse files
committed
Added retries to SetCloudBuildVariable for GitHubActions
Updated the GitHubActions class to adopt retries in the SetCloudBuildVariable method.
1 parent bd32874 commit 191378a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NerdBank.GitVersioning/CloudBuildServices/GitHubActions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public IReadOnlyDictionary<string, string> SetCloudBuildNumber(string buildNumbe
2828

2929
public IReadOnlyDictionary<string, string> SetCloudBuildVariable(string name, string value, TextWriter stdout, TextWriter stderr)
3030
{
31-
File.AppendAllText(EnvironmentFile, $"{Environment.NewLine}{name}={value}{Environment.NewLine}");
31+
Utilities.FileOperationWithRetry(() => File.AppendAllText(EnvironmentFile, $"{Environment.NewLine}{name}={value}{Environment.NewLine}"));
3232
return GetDictionaryFor(name, value);
3333
}
3434

0 commit comments

Comments
 (0)