Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions src/compile/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ pub fn replace_with_indent(template: &str, placeholder: &str, replacement: &str)
result
}

/// Generate a schedule YAML block from a ScheduleConfig.
/// When no explicit schedule branches are configured, defaults to `main`.
/// Generate the top-level `parameters:` YAML block from front matter parameters.
///
/// Returns a YAML block like:
Expand Down Expand Up @@ -898,7 +896,7 @@ pub fn generate_acquire_ado_token(service_connection: Option<&str>, variable_nam
r#" displayName: "Acquire ADO token ({variable_name})""#
));
lines.push(" inputs:".to_string());
lines.push(format!(" azureSubscription: '{}'", sc));
lines.push(format!(" azureSubscription: '{}'", sc.replace('\'', "''")));
lines.push(" scriptType: 'bash'".to_string());
lines.push(" scriptLocation: 'inlineScript'".to_string());
lines.push(" addSpnToEnvironment: true".to_string());
Expand Down
Loading