From 50f614060a0a7ec781054a4f1c8a28c1999c5e1f Mon Sep 17 00:00:00 2001 From: peaceiris <30958501+peaceiris@users.noreply.github.com> Date: Mon, 16 Sep 2019 04:53:14 +0900 Subject: [PATCH] add: async --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index 5f7d6fe..f482e8d 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ const getLatestVersion = require("./get-latest-version"); // most @actions toolkit packages have async methods async function run() { try { - getLatestVersion().then(function(latestVersion) { + getLatestVersion().then(async function(latestVersion) { let hugoVersion = core.getInput("hugo-version"); if (!hugoVersion || hugoVersion === "latest") { hugoVersion = latestVersion;