We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 334bd46 commit 1b9f6ddCopy full SHA for 1b9f6dd
.jenkins/get_docker_tag.py
@@ -5,9 +5,14 @@
5
}
6
7
if __name__ == "__main__":
8
- url = "https://api.github.com/repos/pytorch/pytorch/contents/.circleci"
+ url = "https://api.github.com/repos/pytorch/pytorch/contents/.ci"
9
10
response = requests.get(url, headers=REQUEST_HEADERS)
11
- for file in response.json():
12
- if file["name"] == "docker":
13
- print(file["sha"])
+ docker_sha = None
+ for finfo in response.json():
+ 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