From 85a49d11fdcaf7fb23207ca1b4270fea8109ebc2 Mon Sep 17 00:00:00 2001 From: Kenji Matsuoka Date: Tue, 25 Jun 2024 14:49:39 +0900 Subject: [PATCH 1/2] Actions enclosed in quotes are also included in the update target. Related Issues https://github.com/saadmk11/github-actions-version-updater/issues/94 --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index 97d8ae5..bd5a7f6 100644 --- a/src/main.py +++ b/src/main.py @@ -171,7 +171,7 @@ def _update_workflow(self, workflow_path: str) -> set[str]: f'Updating "{action}" with "{updated_action}"...' ) updated_workflow_data = re.sub( - rf"({action})(\s+|$)", + rf"({action})(\s+['\"]?|['\"]?$)", rf"{updated_action}\2", updated_workflow_data, 0, From 0c1ca0240693d1c91bc9f4aa5ca84ad45b19e65b Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 25 Jun 2024 06:28:52 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.py b/src/main.py index bd5a7f6..1254621 100644 --- a/src/main.py +++ b/src/main.py @@ -171,7 +171,7 @@ def _update_workflow(self, workflow_path: str) -> set[str]: f'Updating "{action}" with "{updated_action}"...' ) updated_workflow_data = re.sub( - rf"({action})(\s+['\"]?|['\"]?$)", + rf"({action})(\s+['\"]?|['\"]?$)", rf"{updated_action}\2", updated_workflow_data, 0,