From 24a1554a2f0e7d81eb1bcf9a3c0d88374931ac31 Mon Sep 17 00:00:00 2001 From: amercader Date: Fri, 13 Dec 2024 11:52:32 +0100 Subject: [PATCH] Add check to make sure schema has the right version --- .github/workflows/reusable.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/.github/workflows/reusable.yml b/.github/workflows/reusable.yml index e9b9e83..ef76ab4 100644 --- a/.github/workflows/reusable.yml +++ b/.github/workflows/reusable.yml @@ -45,7 +45,24 @@ jobs: run: | cd solr-${{ inputs.solr_version }} make build CKAN_VERSION=${{ inputs.ckan_version }} CKAN_BRANCH=${{ inputs.ckan_branch }} + + - name: Assert the image has the right schema version + run: | + VERSION_IN_SCHEMA=$( + docker run --rm \ + ckan/ckan-solr:${{ inputs.ckan_version }}-solr${{ inputs.solr_version }} \ + grep -o "