Skip to content

Commit

Permalink
fix: correct path for dist file in git tree
Browse files Browse the repository at this point in the history
Changed dist path to relative path for accurate indexing.
  • Loading branch information
gentlementlegen committed Oct 31, 2024
1 parent 9690d25 commit 789e396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ runs:
});
console.log('Adding file:', manifestPath);
const distPath = '${{ github.workspace }}/dist/'
const distPath = '${{ github.workspace }}/dist/';
const relativePath = path.relative('.', distPath + 'index.js');
console.log('Adding file:', relativePath);
const newTree = await octokit.rest.git.createTree({
Expand All @@ -187,7 +187,7 @@ runs:
content: fs.readFileSync(manifestPath, 'utf8'),
},
{
path: distPath,
path: relativePath,
mode: '100644',
type: 'blob',
content: fs.readFileSync(relativePath, 'utf8'),
Expand Down

0 comments on commit 789e396

Please sign in to comment.