From f1aa76c72f8b1acc8ab0713e9b560694d53de144 Mon Sep 17 00:00:00 2001 From: Quentin Pradet Date: Fri, 4 Oct 2024 14:51:12 +0400 Subject: [PATCH] Allow YAML quotes around action names --- src/gha_update/_core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gha_update/_core.py b/src/gha_update/_core.py index 4319d94..55f9364 100644 --- a/src/gha_update/_core.py +++ b/src/gha_update/_core.py @@ -69,7 +69,7 @@ def read_workflows() -> dict[Path, set[str]]: def find_name_in_line(line: str) -> str | None: - uses = line.partition(" uses:")[2].strip() + uses = line.partition(" uses:")[2].strip(' "') # ignore other lines, and local and docker actions if not uses or uses.startswith("./") or uses.startswith("docker://"):