add: async
This commit is contained in:
parent
b836447fac
commit
50f614060a
2
index.js
2
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;
|
||||
|
|
Loading…
Reference in New Issue