Skip to content

Commit

Permalink
fix: trainingDataFullPath
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Sep 15, 2020
1 parent f15282a commit 138a4d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions actions/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ export async function run(): Promise<void> {
};
trainingData.push(issue);
});
fs.writeFileSync(path.join(tmpDir, 'training-data.json'), JSON.stringify(trainingData));
const trainingDataFullPath = path.join(tmpDir, 'training-data.json')
fs.writeFileSync(trainingDataFullPath, JSON.stringify(trainingData));

// upload artifacts
core.startGroup('Upload training data as artifact');
Expand All @@ -68,7 +69,7 @@ export async function run(): Promise<void> {
};
const uploadResult = await artifactClient.uploadArtifact(
'training_data',
[repository.issues.fullPath, repository.comments.fullPath, 'training-data.json'],
[repository.issues.fullPath, repository.comments.fullPath, trainingDataFullPath],
tmpDir,
artifactOptions
);
Expand Down

0 comments on commit 138a4d1

Please sign in to comment.