Skip to content

Commit 1b9f6dd

Browse files
committed
And fix this as well
1 parent 334bd46 commit 1b9f6dd

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.jenkins/get_docker_tag.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,14 @@
55
}
66

77
if __name__ == "__main__":
8-
url = "https://api.github.com/repos/pytorch/pytorch/contents/.circleci"
8+
url = "https://api.github.com/repos/pytorch/pytorch/contents/.ci"
99

1010
response = requests.get(url, headers=REQUEST_HEADERS)
11-
for file in response.json():
12-
if file["name"] == "docker":
13-
print(file["sha"])
11+
docker_sha = None
12+
for finfo in response.json():
13+
if finfo["name"] == "docker":
14+
docker_sha = finfo["sha"]
15+
break
16+
if docker_sha is None:
17+
raise RuntimeError("Can't find sha sum of docker folder")
18+
print(docker_sha)

0 commit comments

Comments
 (0)