Skip to content

Commit

Permalink
Merge pull request #187 from danquack/patch-1
Browse files Browse the repository at this point in the history
change environment name to INPUT_PACKAGEJSON_DIR
  • Loading branch information
phips28 authored Nov 3, 2022
2 parents 26ea9dd + 1568b67 commit e9bc214
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ const path = require('path');
if (process.env.PACKAGEJSON_DIR) {
process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.PACKAGEJSON_DIR}`;
process.chdir(process.env.GITHUB_WORKSPACE);
} else if (process.env.INPUT_PACKAGEJSON_DIR) {
process.env.GITHUB_WORKSPACE = `${process.env.GITHUB_WORKSPACE}/${process.env.INPUT_PACKAGEJSON_DIR}`;
process.chdir(process.env.GITHUB_WORKSPACE);
}

console.log('process.env.GITHUB_WORKSPACE', process.env.GITHUB_WORKSPACE);
Expand Down

0 comments on commit e9bc214

Please sign in to comment.