From 617ad417b7bcf53ab7582bb709429ea97e39acd9 Mon Sep 17 00:00:00 2001 From: Shakar <5h4k4r.b4kr@gmail.com> Date: Sun, 17 Sep 2023 14:40:03 +0300 Subject: [PATCH] Add CWD --- index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.js b/index.js index 542dade..747c940 100644 --- a/index.js +++ b/index.js @@ -2,9 +2,11 @@ const core = require('@actions/core') const github = require('@actions/github') const fs = require('fs') const xml2js = require('xml2js') + try { + console.log(`CWD: ${process.cwd()}`) const label = core.getInput('label'); - const filePath = `../../${core.getInput('filePath')}`; + const filePath = `${process.cwd()}/${core.getInput('filePath')}`; console.log(`Label: ${label}`) console.log(`File path: ${filePath}`)