Skip to content

Commit

Permalink
Only check urls if not running for a pull request.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Mar 6, 2024
1 parent 4182891 commit 952300f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion schemas/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def validate_builds(builds):
files = build['files']
assert version in download_base_url, f'version not found in download_base_url: {json.dumps(build)}'
assert all(version in file['filename'] for file in files), f'version not found in all filenames: {json.dumps(build)}'
check_urls_exist(download_base_url, files)
is_pull_request = 'GITHUB_BASE_REF' in os.environ
if not is_pull_request:
check_urls_exist(download_base_url, files)


def check_urls_exist(download_base_url, files):
Expand Down

0 comments on commit 952300f

Please sign in to comment.