mirror of
https://github.com/ditkrg/project-version-check.git
synced 2026-01-23 06:16:41 +00:00
Add CWD
This commit is contained in:
parent
2e5e9bbd3e
commit
617ad417b7
4
index.js
4
index.js
@ -2,9 +2,11 @@ const core = require('@actions/core')
|
|||||||
const github = require('@actions/github')
|
const github = require('@actions/github')
|
||||||
const fs = require('fs')
|
const fs = require('fs')
|
||||||
const xml2js = require('xml2js')
|
const xml2js = require('xml2js')
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
console.log(`CWD: ${process.cwd()}`)
|
||||||
const label = core.getInput('label');
|
const label = core.getInput('label');
|
||||||
const filePath = `../../${core.getInput('filePath')}`;
|
const filePath = `${process.cwd()}/${core.getInput('filePath')}`;
|
||||||
|
|
||||||
console.log(`Label: ${label}`)
|
console.log(`Label: ${label}`)
|
||||||
console.log(`File path: ${filePath}`)
|
console.log(`File path: ${filePath}`)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user