From 037d595497a751bdb024f915eb5a91fefe6e4778 Mon Sep 17 00:00:00 2001 From: Shane St Savage Date: Thu, 12 Sep 2024 08:52:53 -0700 Subject: [PATCH] Fix ERDDAP_VERSION parsing from Dockerfile in version check --- .github/workflows/erddap_version.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/erddap_version.yml b/.github/workflows/erddap_version.yml index a734458..1537251 100644 --- a/.github/workflows/erddap_version.yml +++ b/.github/workflows/erddap_version.yml @@ -38,7 +38,7 @@ jobs: const dockerfile = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/Dockerfile`, "utf-8") const lines = dockerfile.split("\n") const docker_version_line = lines.find(line => line.includes("ERDDAP_VERSION")) - const docker_version = `v${docker_version_line.split(" ")[2]}` + const docker_version = `v${docker_version_line.split("=")[1]}` if (tag === docker_version) { console.log(`Latest Docker version (${docker_version}) matches the latest available ERDDAP/erddap release`)