Skip to content

Commit

Permalink
feat(scripts): support env variables a zola version
Browse files Browse the repository at this point in the history
  • Loading branch information
kogeletey committed Feb 23, 2023
1 parent 67cd656 commit e889c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/getzola.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Octokit } from "@octokit/rest";
import extract from "extract-zip";
import tar from "tar";

const ZOLA_VERSION = fs.readFileSync("./zola-version.txt", "utf8"); // TODO: support a env variable for zola version for CI/CD
const ZOLA_VERSION = process.env.ZOLA_VERSION ? process.env.ZOLA_VERSION : fs.readFileSync("./zola-version.txt", "utf8");
const downloadCacheDir = "./.cache/zola_bin";

console.log(`Downloading Zola ${ZOLA_VERSION}...`);
Expand Down

0 comments on commit e889c41

Please sign in to comment.