From bb83d5493a79a2ff1d1a7e88f6f5cdd5e758de79 Mon Sep 17 00:00:00 2001 From: Philipp Horstenkamp Date: Tue, 22 Apr 2025 00:47:33 +0200 Subject: [PATCH] Added an async await --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index e49cdb1..3ae86e1 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ const { ScreepsAPI } = require("screeps-api"); const core = require("@actions/core"); const fs = require("fs"); -const { glob } = require("glob"); +const glob = require("glob"); const path = require("path"); /** @@ -214,4 +214,6 @@ async function postCode() { } } -postCode(); +postCode().catch((err) => { + core.setFailed(err.message || err); +});