File tree Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Expand file tree Collapse file tree 2 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 29
29
uses : ./actions/yaml/lint
30
30
with :
31
31
python-version : 3.8
32
+ targets : ./assets
32
33
33
34
run-js-tests :
34
35
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change @@ -13,21 +13,27 @@ export const ConvergenceMixin = (superclass) =>
13
13
return this . findUnitWithTag ( "hasConvergenceResult" ) ?. operand || undefined ;
14
14
}
15
15
16
- // TODO: investigate how scope changes between subworkflows to allow for multiple convergences per job, in different subworkflows
17
16
convergenceSeries ( scopeTrack ) {
18
17
if ( ! this . hasConvergence || ! scopeTrack ?. length ) return [ ] ;
19
18
let lastResult ;
20
19
const series = scopeTrack
21
- . map ( ( scopeItem ) => ( {
22
- x : scopeItem . scope ?. global [ this . convergenceParam ] ,
20
+ . map ( ( scopeItem , i ) => ( {
21
+ x : i ,
22
+ param : scopeItem . scope ?. global [ this . convergenceParam ] ,
23
23
y : scopeItem . scope ?. global [ this . convergenceResult ] ,
24
24
} ) )
25
25
. filter ( ( { y } ) => {
26
26
const isNewResult = y !== undefined && y !== lastResult ;
27
27
lastResult = y ;
28
28
return isNewResult ;
29
29
} ) ;
30
- return series ;
30
+ return series . map ( ( item , i ) => {
31
+ return {
32
+ x : i + 1 ,
33
+ param : item . param ,
34
+ y : item . y ,
35
+ } ;
36
+ } ) ;
31
37
}
32
38
33
39
addConvergence ( {
You can’t perform that action at this time.
0 commit comments