mirror of
https://github.com/peaceiris/actions-hugo.git
synced 2026-01-25 12:22:17 +01:00
add: async
This commit is contained in:
2
index.js
2
index.js
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user