Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyoko-Jeremie committed Nov 16, 2023
1 parent b76949c commit 24b3776
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions readGameVersion.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const os = require("os")
const fs = require("fs")
const os = require("os");
const fs = require("fs");
const util = require("util");

function setOutput(key, value) {
// Temporary hack until core actions library catches up with github new recommendations
Expand All @@ -19,7 +20,7 @@ function setOutput(key, value) {
process.exit(1);
return;
}
const GameSugarCubeConfigJsF = await promisify(readFile)(GameSugarCubeConfigJsFilePath, {encoding: 'utf-8'});
const GameSugarCubeConfigJsF = await (util.promisify(fs.readFile)(GameSugarCubeConfigJsFilePath, {encoding: 'utf-8'}));

const findR = GameSugarCubeConfigJsF.exec(/version: {0,}"([^"]+)"/);
if (!findR) {
Expand Down

0 comments on commit 24b3776

Please sign in to comment.