Skip to content

Commit

Permalink
Merge pull request #39 from sargunv/absolute-path
Browse files Browse the repository at this point in the history
Use absolute path for BUILDEVENTS_FILE
  • Loading branch information
Koenraad Verheyden authored Feb 27, 2021
2 parents 70cba09 + 69ba78f commit 893b7ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5447,7 +5447,7 @@ function addFields(keyValueMap) {
const BUILDEVENT_FILE = 'BUILDEVENT_FILE';
let envPath = util.getEnv(BUILDEVENT_FILE);
if (!envPath) {
envPath = '../buildevents.txt';
envPath = path.resolve('../buildevents.txt');
util.setEnv(BUILDEVENT_FILE, envPath);
}
// Add the existing values from the BUILDEVENT_FILE to the fields we write out
Expand Down
2 changes: 1 addition & 1 deletion src/buildevents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function addFields(keyValueMap: object): void {

let envPath = util.getEnv(BUILDEVENT_FILE)
if (!envPath) {
envPath = '../buildevents.txt'
envPath = path.resolve('../buildevents.txt')
util.setEnv(BUILDEVENT_FILE, envPath)
}
// Add the existing values from the BUILDEVENT_FILE to the fields we write out
Expand Down

0 comments on commit 893b7ec

Please sign in to comment.