From adbfa9d4ba365d65f5643618fc163cda1913b65f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20=C4=8C=C3=A1bera?= Date: Mon, 30 Dec 2019 01:22:26 +0100 Subject: [PATCH] fix: replace forward and back slashes https://github.com/Ash258/GithubActionsBucketForTesting/commit/70c287210695854072d1a88782635ad5a06fd275/checks?check_suite_id=377925736#step:3:4 --- invoke-pwsh.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invoke-pwsh.js b/invoke-pwsh.js index 0d583b0..ae8cdb8 100644 --- a/invoke-pwsh.js +++ b/invoke-pwsh.js @@ -4,7 +4,7 @@ const exec = require('@actions/exec'); async function run() { try { - const pwshFolder = __dirname.replace(/\/_init$/, ''); + const pwshFolder = __dirname.replace(/[/\\]_init$/, ''); const pwshScript = `${pwshFolder}/action.ps1` await exec.exec('pwsh', [ '-f', pwshScript ]); } catch (error) {