diff --git a/.github/workflows/zombie-tests.yaml b/.github/workflows/zombie-tests.yaml index e8434ec5ba..e56bb26c5c 100644 --- a/.github/workflows/zombie-tests.yaml +++ b/.github/workflows/zombie-tests.yaml @@ -60,9 +60,12 @@ jobs: ARTIFACTS_REPO=$(grep '^ARTIFACTS_REPO ?=' Makefile | sed 's/ARTIFACTS_REPO ?= //') REGION=$(grep '^REGION ?=' Makefile | sed 's/REGION ?= //') SHORT_COMMIT_HASH=$(grep 'short_commit_hash:' commit_hash.txt | cut -d ' ' -f 2) + PACKAGE_VERSION="${SHORT_COMMIT_HASH}-${{ github.event.inputs.build_type }}" + echo "PACKAGE_VERSION=${PACKAGE_VERSION}" + echo "PACKAGE_VERSION=${PACKAGE_VERSION}" >> $GITHUB_ENV gcloud config set artifacts/repository $ARTIFACTS_REPO gcloud config set artifacts/location $REGION - PACKAGE_EXIST=$(gcloud artifacts versions list --package=kagome-dev --format=json | jq -e '.[] | select(.name | endswith("${SHORT_COMMIT_HASH}-${{ github.event.inputs.build_type }}"))' > /dev/null && echo "True" || echo "False") + PACKAGE_EXIST=$(gcloud artifacts versions list --package=kagome-dev --format=json | jq -e '.[] | select(.name | endswith("$PACKAGE_VERSION"))' > /dev/null && echo "True" || echo "False") echo "PACKAGE_EXIST=${PACKAGE_EXIST}" >> $GITHUB_ENV - name: "Cache dependencies"