File tree Expand file tree Collapse file tree 6 files changed +62
-5
lines changed Expand file tree Collapse file tree 6 files changed +62
-5
lines changed Original file line number Diff line number Diff line change
1
+ component : sdk/auto
2
+ kind : Improvements
3
+ body : Add --run-program to destory and refresh operations
4
+ time : 2025-04-24T21:30:35.404733406+01:00
5
+ custom :
6
+ PR : " 580"
Original file line number Diff line number Diff line change @@ -72,13 +72,20 @@ jobs:
72
72
runs-on : ubuntu-22.04
73
73
steps :
74
74
- uses : actions/checkout@v4
75
- - name : Lint changelog
75
+ - name : Check if folder is empty
76
+ id : folder_check
76
77
run : |
77
- # Check the changelog is batchable
78
- if [ ! -z $(ls .changes/unreleased) ]; then
79
- # There are changes so check changie will batch them
80
- changie batch auto --dry-run
78
+ if [ -z "$(ls .changes/unreleased)" ]; then
79
+ echo "empty=true" >> $GITHUB_OUTPUT
80
+ else
81
+ echo "empty=false" >> $GITHUB_OUTPUT
81
82
fi
83
+ - name : Check the changelog is batchable
84
+ # There are changes so check changie will batch them
85
+ if : steps.folder_check.outputs.empty == 'false'
86
+ uses : miniscruff/changie-action@v2
87
+ with :
88
+ args : batch auto --dry-run
82
89
83
90
build :
84
91
needs : setup_matrix
Original file line number Diff line number Diff line change @@ -28,5 +28,10 @@ public sealed class DestroyOptions : UpdateOptions
28
28
/// Refresh the state of the stack's resources before this destroy.
29
29
/// </summary>
30
30
public bool ? Refresh { get ; set ; }
31
+
32
+ /// <summary>
33
+ /// Runs the program in the workspace to perform the destroy.
34
+ /// </summary>
35
+ public bool ? RunProgram { get ; set ; }
31
36
}
32
37
}
Original file line number Diff line number Diff line change @@ -36,5 +36,10 @@ public sealed class RefreshOptions : UpdateOptions
36
36
/// <see cref="PendingCreateValue"/> values to import into the stack
37
37
/// </summary>
38
38
public List < PendingCreateValue > ? ImportPendingCreates { get ; set ; }
39
+
40
+ /// <summary>
41
+ /// Runs the program in the workspace to perform the refresh.
42
+ /// </summary>
43
+ public bool ? RunProgram { get ; set ; }
39
44
}
40
45
}
Original file line number Diff line number Diff line change @@ -603,6 +603,18 @@ public async Task<UpdateResult> RefreshAsync(
603
603
}
604
604
}
605
605
606
+ if ( options . RunProgram is not null )
607
+ {
608
+ if ( options . RunProgram is true )
609
+ {
610
+ args . Add ( "--run-program=true" ) ;
611
+ }
612
+ else
613
+ {
614
+ args . Add ( "--run-program=false" ) ;
615
+ }
616
+ }
617
+
606
618
ApplyUpdateOptions ( options , args ) ;
607
619
}
608
620
@@ -655,6 +667,18 @@ public async Task<UpdateResult> DestroyAsync(
655
667
if ( options . Refresh is true )
656
668
args . Add ( "--refresh" ) ;
657
669
670
+ if ( options . RunProgram is not null )
671
+ {
672
+ if ( options . RunProgram is true )
673
+ {
674
+ args . Add ( "--run-program=true" ) ;
675
+ }
676
+ else
677
+ {
678
+ args . Add ( "--run-program=false" ) ;
679
+ }
680
+ }
681
+
658
682
ApplyUpdateOptions ( options , args ) ;
659
683
}
660
684
You can’t perform that action at this time.
0 commit comments