@@ -11,7 +11,6 @@ use crate::version::ENSO_RELEASE_MODE;
11
11
use crate :: version:: ENSO_VERSION ;
12
12
13
13
use ide_ci:: actions:: workflow:: definition:: checkout_repo_step;
14
- use ide_ci:: actions:: workflow:: definition:: env_expression;
15
14
use ide_ci:: actions:: workflow:: definition:: get_input;
16
15
use ide_ci:: actions:: workflow:: definition:: get_input_expression;
17
16
use ide_ci:: actions:: workflow:: definition:: is_non_windows_runner;
@@ -502,14 +501,13 @@ pub fn nightly() -> Result<Workflow> {
502
501
} ;
503
502
504
503
let mut workflow = Workflow { on, name : "Nightly Release" . into ( ) , ..default ( ) } ;
505
- // Scheduled workflows do not support input parameters. Instead we provide env variable
506
- // expression with default. Feature request is tracked by https://github.com/orgs/community/discussions/74698
507
- let input_env_ydoc = format ! ( "{} || {}" , get_input( input:: name:: YDOC ) , input_ydoc_default) ;
508
- workflow. env ( input:: env:: Ydoc , wrap_expression ( input_env_ydoc) ) ;
504
+ // Scheduled workflows do not support input parameters. We need to provide an explicit default
505
+ // value. Feature request is tracked by https://github.com/orgs/community/discussions/74698
506
+ let input_ydoc = format ! ( "{} || '{}'" , get_input( input:: name:: YDOC ) , input_ydoc_default) ;
509
507
510
508
let job = workflow_call_job ( "Promote nightly" , PROMOTE_WORKFLOW_PATH )
511
509
. with_with ( input:: name:: DESIGNATOR , Designation :: Nightly . as_ref ( ) )
512
- . with_with ( input:: name:: YDOC , env_expression ( & input :: env :: Ydoc ) ) ;
510
+ . with_with ( input:: name:: YDOC , wrap_expression ( input_ydoc ) ) ;
513
511
workflow. add_job ( job) ;
514
512
Ok ( workflow)
515
513
}
0 commit comments