Skip to content

Commit

Permalink
Merge pull request #93 from axiom-data-science/fix-gha-version-check
Browse files Browse the repository at this point in the history
Fix ERDDAP_VERSION parsing from Dockerfile in version check
  • Loading branch information
srstsavage authored Sep 12, 2024
2 parents 4ecbe85 + 037d595 commit 9ef83b7
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 9ef83b7

Please sign in to comment.