Skip to content

Commit a11e705

Browse files
committed
Fix
1 parent 1c9c90f commit a11e705

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,11 @@ def _update_workflow(self, workflow_path: str) -> set[str]:
147147

148148
for action in all_actions:
149149
try:
150-
action_repository, current_version = action.split("@")
150+
action_location, current_version = action.split("@")
151151
# A GitHub Action can be in a subdirectory of a repository
152152
# e.g. `flatpak/flatpak-github-actions/flatpak-builder@v4`.
153153
# we only need `user/repo` part from action_repository
154-
action_repository = "/".join(action_repository.split("/")[:2])
154+
action_repository = "/".join(action_location.split("/")[:2])
155155
except ValueError:
156156
gha_utils.warning(
157157
f'Action "{action}" is in a wrong format, '
@@ -170,7 +170,7 @@ def _update_workflow(self, workflow_path: str) -> set[str]:
170170
)
171171
continue
172172

173-
updated_action = f"{action_repository}@{new_version}"
173+
updated_action = f"{action_location}@{new_version}"
174174

175175
if action != updated_action:
176176
gha_utils.echo(f'Found new version for "{action_repository}"')

0 commit comments

Comments
 (0)