diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index f3c23edd..606ca7ab 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -183,7 +183,9 @@ def git(*args) "#{dependabot_config}\n", ) when deprecated_lock_threads - FileUtils.rm_f path + next unless target_path.exist? + + git "-C", target_directory, "rm", path else next if path == target_path.to_s