From 0b82353aad627ff39c3c0926b96469eafa6b2005 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sun, 14 Jul 2024 16:01:04 -0400 Subject: [PATCH] sync/shared-config: don't try to `git rm` if workflow doesn't exist. --- .github/actions/sync/shared-config.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/actions/sync/shared-config.rb b/.github/actions/sync/shared-config.rb index 07e81117..606ca7ab 100755 --- a/.github/actions/sync/shared-config.rb +++ b/.github/actions/sync/shared-config.rb @@ -183,6 +183,8 @@ def git(*args) "#{dependabot_config}\n", ) when deprecated_lock_threads + next unless target_path.exist? + git "-C", target_directory, "rm", path else next if path == target_path.to_s