From 37332a5498d4939d8481006e4d187a6d31c72411 Mon Sep 17 00:00:00 2001 From: Laura Bailey Date: Fri, 25 Feb 2022 16:55:52 +1100 Subject: [PATCH] Compiled index.js I had to add `"newLine": "LF"` to the tsconfig.json. I also had to discard a change to `module.exports` on line 4232 because I'm pretty sure it had nothing to do with my changes. --- dist/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 9ec08b0..cd07c92 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7432,12 +7432,15 @@ function getSource(settings) { core.startGroup('Setting up auth for fetching submodules'); yield authHelper.configureGlobalAuth(); core.endGroup(); + // Clean existing submodules + if (settings.clean) { + yield git.submoduleReset(settings.nestedSubmodules); + yield git.submoduleClean(settings.nestedSubmodules); + } // Checkout submodules core.startGroup('Fetching submodules'); yield git.submoduleSync(settings.nestedSubmodules); yield git.submoduleUpdate(settings.fetchDepth, settings.nestedSubmodules); - yield git.submoduleReset(settings.nestedSubmodules); - yield git.submoduleClean(settings.nestedSubmodules); yield git.submoduleForeach('git config --local gc.auto 0', settings.nestedSubmodules); core.endGroup(); // Persist credentials