Skip to content

Commit 0637ff0

Browse files
authored
Merge pull request #556 from danjagnow/features/github-actions-set-cloud-variable-retry
Added retries to SetCloudBuildVariable for GitHubActions
2 parents a4d9577 + 191378a commit 0637ff0

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)