We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed2ece1 commit 2666508Copy full SHA for 2666508
src/ci.rs
@@ -50,19 +50,13 @@ impl GithubActionsRunner<std::fs::File> {
50
51
debug!("Writing to GITHUB_ENV: {env_path}");
52
53
- let env_file = OpenOptions::new()
54
- .create(true) // needed for unit tests
55
- .append(true)
56
- .open(&env_path)?;
+ let env_file = OpenOptions::new().append(true).open(&env_path)?;
57
58
let output_path = std::env::var("GITHUB_OUTPUT").expect("GITHUB_OUTPUT must be set");
59
60
debug!("Writing to GITHUB_OUTPUT: {env_path}");
61
62
- let output_file = OpenOptions::new()
63
64
65
- .open(&output_path)?;
+ let output_file = OpenOptions::new().append(true).open(&output_path)?;
66
Ok(Self {
67
env_file,
68
output_file,
0 commit comments