Skip to content

Commit eb8fd76

Browse files
committed
Branch name specified
1 parent 540a269 commit eb8fd76

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bin/json_tests_workflow.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,9 @@ def main():
5151

5252
urls = json.loads(repo.get_contents("specification_urls.json").decoded_content.decode('utf-8'))
5353

54-
changed_file_content = repo.get_contents(file).decoded_content.decode('utf-8')
54+
branch_name = pr.head.ref
55+
print(branch_name)
56+
changed_file_content = repo.get_contents(file, ref=branch_name).decoded_content.decode('utf-8')
5557
# Parse JSON content
5658
print("--------")
5759
try:

0 commit comments

Comments
 (0)