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