Skip to content

Commit 037d595

Browse files
committed
Fix ERDDAP_VERSION parsing from Dockerfile in version check
1 parent 4ecbe85 commit 037d595

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/erddap_version.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
const dockerfile = fs.readFileSync(`${process.env.GITHUB_WORKSPACE}/Dockerfile`, "utf-8")
3939
const lines = dockerfile.split("\n")
4040
const docker_version_line = lines.find(line => line.includes("ERDDAP_VERSION"))
41-
const docker_version = `v${docker_version_line.split(" ")[2]}`
41+
const docker_version = `v${docker_version_line.split("=")[1]}`
4242
4343
if (tag === docker_version) {
4444
console.log(`Latest Docker version (${docker_version}) matches the latest available ERDDAP/erddap release`)

0 commit comments

Comments
 (0)