From 185472816e8b85f7c34e08948bce39eafe27a964 Mon Sep 17 00:00:00 2001 From: Tonye Jack Date: Tue, 23 May 2023 00:57:37 -0600 Subject: [PATCH] Setup group --- src/main.ts | 6 +++++- src/utils.ts | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/main.ts b/src/main.ts index b1176519..acbd43cf 100644 --- a/src/main.ts +++ b/src/main.ts @@ -18,8 +18,10 @@ import { } from './utils' export async function run(): Promise { + core.startGroup('changed-files') + const env = await getEnv() - core.debug(`Env: ${JSON.stringify(process.env, null, 2)}`) + core.debug(`Env: ${JSON.stringify(env, null, 2)}`) const inputs = getInputs() core.debug(`Inputs: ${JSON.stringify(inputs, null, 2)}`) @@ -371,6 +373,8 @@ export async function run(): Promise { inputs }) } + + core.endGroup() } /* istanbul ignore if */ diff --git a/src/utils.ts b/src/utils.ts index 57319a4e..8f41c675 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -200,7 +200,7 @@ export const gitFetch = async ({ }): Promise => { const {exitCode, stderr} = await exec.getExecOutput( 'git', - ['fetch', ...args], + ['fetch', '-q', ...args], { cwd, silent: true @@ -224,7 +224,7 @@ export const gitFetchSubmodules = async ({ }): Promise => { const {exitCode, stderr} = await exec.getExecOutput( 'git', - ['submodule', 'foreach', 'git', 'fetch', ...args], + ['submodule', 'foreach', 'git', 'fetch', '-q', ...args], { cwd, silent: true