mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-25 15:22:59 +00:00
Add CWD
This commit is contained in:
4
index.js
4
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}`)
|
||||
|
||||
Reference in New Issue
Block a user