From 51add10f16843548d0696aeb96ea28182b4bd647 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 13 Dec 2024 12:11:18 +0100 Subject: [PATCH] Check for schema version for 2.9 --- .github/workflows/reusable.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index c70fc3f..b8a25fb 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -47,6 +47,7 @@ jobs: make build CKAN_VERSION=${{ inputs.ckan_version }} CKAN_BRANCH=${{ inputs.ckan_branch }} - name: Assert the image has the right schema version + if: ${{ inputs.ckan_branch != 'dev-v2.9'}} run: | VERSION_IN_SCHEMA=$( docker run --rm \ @@ -59,6 +60,20 @@ jobs: exit 1 fi + - name: Assert the image has the right schema version (2.9) + if: ${{ inputs.ckan_branch == 'dev-v2.9'}} + run: | + VERSION_IN_SCHEMA=$( + docker run --rm \ + ckan/ckan-solr:${{ inputs.ckan_version }}-solr${{ inputs.solr_version }} \ + grep -o "