diff --git a/.github/workflows/build-pypy.yml b/.github/workflows/build-pypy.yml index 31a69c2..f147b94 100644 --- a/.github/workflows/build-pypy.yml +++ b/.github/workflows/build-pypy.yml @@ -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)