Skip to content

Commit

Permalink
Fix ERDDAP_VERSION parsing from Dockerfile in version check
Browse files Browse the repository at this point in the history
  • Loading branch information
srstsavage committed Sep 12, 2024
1 parent 4ecbe85 commit 037d595
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/erddap_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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`)
Expand Down

0 comments on commit 037d595

Please sign in to comment.