From 0a9f64db47dbaddd4d92d222acdbd49dd364a41c Mon Sep 17 00:00:00 2001 From: Shia Date: Tue, 5 Sep 2023 08:46:38 +0900 Subject: [PATCH] Pass showProgress to fetchOptions --- dist/index.js | 4 +++- src/git-source-provider.ts | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index 67752ae3..100d205e 100644 --- a/dist/index.js +++ b/dist/index.js @@ -1243,7 +1243,9 @@ function getSource(settings) { } // Fetch core.startGroup('Fetching the repository'); - const fetchOptions = {}; + const fetchOptions = { + showProgress: settings.showProgress + }; if (settings.sparseCheckout) fetchOptions.filter = 'blob:none'; if (settings.fetchDepth <= 0) { diff --git a/src/git-source-provider.ts b/src/git-source-provider.ts index c1360b82..8a170825 100644 --- a/src/git-source-provider.ts +++ b/src/git-source-provider.ts @@ -157,8 +157,10 @@ export async function getSource(settings: IGitSourceSettings): Promise { filter?: string fetchDepth?: number fetchTags?: boolean - showProgress?: boolean - } = {} + showProgress: boolean + } = { + showProgress: settings.showProgress + } if (settings.sparseCheckout) fetchOptions.filter = 'blob:none' if (settings.fetchDepth <= 0) { // Fetch all branches and tags