diff --git a/.github/workflows/continuous-integration.yaml b/.github/workflows/continuous-integration.yaml index 0938a6b70..ed93e022b 100644 --- a/.github/workflows/continuous-integration.yaml +++ b/.github/workflows/continuous-integration.yaml @@ -109,7 +109,7 @@ jobs: mkdir -p pkg ./script/actions_utils/gh_dl_release.sh \ --token ${{ secrets.BOT_TOKEN }} \ - --org-repo zama-ai/homomorphizer \ + --org-repo ${{ secrets.COMPILER_REPO }} \ --file "${WHEEL_SPEC}" \ --dest-dir "pkg" \ --github-env "${GITHUB_ENV}" \ diff --git a/.github/workflows/package-watcher.yaml b/.github/workflows/package-watcher.yaml index bb4721fec..e89e36f9e 100644 --- a/.github/workflows/package-watcher.yaml +++ b/.github/workflows/package-watcher.yaml @@ -39,7 +39,7 @@ jobs: run: | ./script/actions_utils/timestamp_check_compiler_package_update_container.sh \ --compiler-release-endpoint-url \ - https://api.github.com/repos/zama-ai/homomorphizer/releases \ + https://api.github.com/repos/${{ secrets.COMPILER_REPO }}/releases \ --env_img_url \ https://api.github.com/orgs/zama-ai/packages/container/concrete-framework-env/versions \ --file "${WHEEL_SPEC}" \ 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 347cfb6f7..a7f6ede6a 100755 --- a/script/actions_utils/timestamp_check_compiler_package_update_container.sh +++ b/script/actions_utils/timestamp_check_compiler_package_update_container.sh @@ -54,9 +54,14 @@ ENV_JSON=$(curl \ LATEST_ENV_IMG_JSON=$(echo "${ENV_JSON}" | \ jq -rc '.[] | select(.metadata.container.tags[] | contains("latest"))') -RELEASE_JSON=$(curl -H "Authorization: token ${TOKEN}" \ +RELEASE_JSON_PACK=$(curl -H "Authorization: token ${TOKEN}" \ -H "Accept: application/vnd.github.v3.raw" \ -"${COMPILER_RELEASE_ENDPOINT_URL}" | jq '. | map(select(.draft == false))[0]') +"${COMPILER_RELEASE_ENDPOINT_URL}") + +echo "Release json pack:" +echo "${RELEASE_JSON_PACK}" + +RELEASE_JSON=$(echo "${RELEASE_JSON_PACK}" | jq '. | map(select(.draft == false))[0]') echo "Release json:" echo "${RELEASE_JSON}"