Skip to content

Commit

Permalink
Merge pull request #106 from kenz/fix/ignored_action_with_quotation
Browse files Browse the repository at this point in the history
Fix the actions enclosed in quotes are not updated
  • Loading branch information
saadmk11 authored Sep 7, 2024
2 parents 64be81b + 0c1ca02 commit ef9573d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit ef9573d

Please sign in to comment.