Skip to content

Commit

Permalink
Exit if no checksums
Browse files Browse the repository at this point in the history
  • Loading branch information
Cyb3r-Jak3 committed Aug 30, 2024
1 parent 6733ede commit 14402c9
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build-pypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,12 @@ jobs:
print('STATUS=404', file=fh)
checksum_resp = requests.get("https://api.cyberjake.xyz/pypy/checksums/pypy${{ matrix.PYPY_BASE }}-v${{ env.PYPY_VERSION }}-src.tar.bz2")
checksum_resp.raise_for_status()
checksum = checksum_resp.json()['results'][0]['checksum']
if len(checksum) == 0:
checksum_json = checksum_resp.json()['results']
if len(checksum_json) == 0:
print("::warning title=Checksum not found:: Missing checksum for PyPy version ${{ env.PYPY_VERSION }} and base ${{ matrix.PYPY_BASE }}")
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print('STATUS=204', file=fh)
if len(checksum_json[0]['checksum']) == 0:
print("::warning title=Checksum not found:: Missing checksum for PyPy version ${{ env.PYPY_VERSION }} and base ${{ matrix.PYPY_BASE }}")
with open(os.environ['GITHUB_OUTPUT'], 'a') as fh:
print('STATUS=204', file=fh)
Expand Down

0 comments on commit 14402c9

Please sign in to comment.