add: async

This commit is contained in:
peaceiris
2019-09-16 04:53:14 +09:00
parent b836447fac
commit 50f614060a

View File

@@ -7,7 +7,7 @@ const getLatestVersion = require("./get-latest-version");
// most @actions toolkit packages have async methods // most @actions toolkit packages have async methods
async function run() { async function run() {
try { try {
getLatestVersion().then(function(latestVersion) { getLatestVersion().then(async function(latestVersion) {
let hugoVersion = core.getInput("hugo-version"); let hugoVersion = core.getInput("hugo-version");
if (!hugoVersion || hugoVersion === "latest") { if (!hugoVersion || hugoVersion === "latest") {
hugoVersion = latestVersion; hugoVersion = latestVersion;