@@ -14,7 +14,7 @@ import type {
14
14
TerraformModule ,
15
15
} from '@/types' ;
16
16
import { WikiStatus , checkoutWiki , commitAndPushWikiChanges , generateWikiFiles } from '@/wiki' ;
17
- import { info , setFailed , setOutput } from '@actions/core' ;
17
+ import { endGroup , info , setFailed , setOutput , startGroup } from '@actions/core' ;
18
18
19
19
/**
20
20
* Initializes and returns the configuration and context objects.
@@ -37,7 +37,7 @@ function initialize(): { config: Config; context: Context } {
37
37
* @param {string[] } terraformModuleNamesToRemove - List of Terraform module names to remove.
38
38
* @returns {Promise<void> } Resolves when wiki-related operations are completed.
39
39
*/
40
- async function handleWikiOperations (
40
+ async function handleReleasePlanComment (
41
41
config : Config ,
42
42
terraformChangedModules : TerraformChangedModule [ ] ,
43
43
terraformModuleNamesToRemove : string [ ] ,
@@ -129,7 +129,7 @@ export async function run(): Promise<void> {
129
129
const terraformModuleNamesToRemove = getTerraformModulesToRemove ( allTags , terraformModules ) ;
130
130
131
131
if ( ! context . isPrMergeEvent ) {
132
- await handleWikiOperations ( config , terraformChangedModules , terraformModuleNamesToRemove ) ;
132
+ await handleReleasePlanComment ( config , terraformChangedModules , terraformModuleNamesToRemove ) ;
133
133
} else {
134
134
await handleMergeEvent (
135
135
config ,
@@ -154,14 +154,15 @@ export async function run(): Promise<void> {
154
154
) ;
155
155
156
156
// Log the changes for debugging
157
+ startGroup ( 'Outputs' ) ;
157
158
info ( `Changed module names: ${ JSON . stringify ( changedModuleNames ) } ` ) ;
158
159
info ( `Changed module paths: ${ JSON . stringify ( changedModulePaths ) } ` ) ;
159
160
info ( `Changed modules map: ${ JSON . stringify ( changedModulesMap , null , 2 ) } ` ) ;
161
+ endGroup ( ) ;
160
162
161
-
162
- setOutput ( 'changed_module_names' , changedModuleNames ) ;
163
- setOutput ( 'changed_module_paths' , changedModulePaths ) ;
164
- setOutput ( 'changed_modules_map' , changedModulesMap ) ;
163
+ setOutput ( 'changed-module-names' , changedModuleNames ) ;
164
+ setOutput ( 'changed-module-paths' , changedModulePaths ) ;
165
+ setOutput ( 'changed-modules-map' , changedModulesMap ) ;
165
166
} catch ( error ) {
166
167
if ( error instanceof Error ) {
167
168
setFailed ( error . message ) ;
0 commit comments