diff --git a/.github/workflows/package-watcher.yaml b/.github/workflows/package-watcher.yaml index f7f0d8fe3..402f6805b 100644 --- a/.github/workflows/package-watcher.yaml +++ b/.github/workflows/package-watcher.yaml @@ -35,14 +35,14 @@ jobs: - name: Compare image timestamps and notify if: ${{ fromJSON(env.SHOULD_RUN) }} env: - WHEEL: concretefhe_compiler-0.1.0-cp38-cp38-manylinux_2_24_x86_64.whl + WHEEL_SPEC: cp38-cp38-manylinux_2_24_x86_64 run: | ./script/actions_utils/timestamp_check_compiler_package_update_container.sh \ --compiler-release-endpoint-url \ https://api.github.com/repos/zama-ai/homomorphizer/releases \ --env_img_url \ https://api.github.com/orgs/zama-ai/packages/container/concretefhe-env/versions \ - --file "${WHEEL}" \ + --file "${WHEEL_SPEC}" \ --token ${{ secrets.BOT_TOKEN }} \ --github-env "$GITHUB_ENV" - name: Open PR diff --git a/script/actions_utils/timestamp_check_compiler_package_update_container.sh b/script/actions_utils/timestamp_check_compiler_package_update_container.sh index 35d0570c4..140e4768f 100755 --- a/script/actions_utils/timestamp_check_compiler_package_update_container.sh +++ b/script/actions_utils/timestamp_check_compiler_package_update_container.sh @@ -66,6 +66,11 @@ ASSET_JSON=$(echo "${RELEASE_JSON}" | jq ".assets | map(select(.name | contains( echo "Asset json:" echo "${ASSET_JSON}" +if [[ "${ASSET_JSON}" == "null" ]]; then + echo "No asset found matching ${FILE}" + exit 0 +fi + LATEST_ENV_IMG_TIMESTAMP=$(echo "${LATEST_ENV_IMG_JSON}" | jq -r '.updated_at') LATEST_COMPILER_PACKAGE_TIMESTAMP=$(echo "${ASSET_JSON}" | jq -r '.updated_at')