Skip to content

Commit 399ea6c

Browse files
committed
Only use the repository of the action instead of the full path
1 parent 44c4165 commit 399ea6c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/update_actions.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ def update_workflow_actions(file_path: Path):
1616
else:
1717
action_with_rest = line.split(":")[1].strip()
1818
action, current_sha_with_version = action_with_rest.split("@")
19+
action_repo = "/".join(action.split("/")[:2])
1920
current_sha, current_version = current_sha_with_version.split("#")
2021
current_sha = current_sha.strip()
2122
current_version = current_version.strip()
22-
new_version, new_sha = get_latest_github_tag(action)
23+
new_version, new_sha = get_latest_github_tag(action_repo)
2324
print(
2425
f"{action}:"
2526
f" current version: {current_version},"

0 commit comments

Comments
 (0)