Skip to content

Commit

Permalink
Relative paths (#11)
Browse files Browse the repository at this point in the history
* fix: make paths relative

* bump version

* fix: github action paths
  • Loading branch information
jeronimoek authored Mar 14, 2023
1 parent 69f6f76 commit 421f299
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 9 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ inputs:

input-path:
description: "Input markdown file path"
default: "./README.md"
default: "README.md"
required: false

output-path:
Expand All @@ -67,7 +67,7 @@ inputs:

package-path:
description: "The path to the package.json file that contains the VSCode contributions"
default: "./package.json"
default: "package.json"
required: false

skip-git-pull:
Expand Down
2 changes: 1 addition & 1 deletion node_modules/.package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "markdown-vscode-contributions-action",
"version": "1.0.10",
"version": "1.0.11",
"description": "Github Action that updates a markdown file using the Markdown VSCode Contributions package",
"license": "MIT",
"type": "module",
Expand Down
7 changes: 4 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ async function run() {
}

const markdownOutput = markdownVscodeContributions({
packagePath,
inputPath,
outputPath,
packagePath: path.join(process.env.GITHUB_WORKSPACE, packagePath),
inputPath: path.join(process.env.GITHUB_WORKSPACE, inputPath),
outputPath: path.join(process.env.GITHUB_WORKSPACE, outputPath),
options: { rootPaths: false },
});

Expand All @@ -72,6 +72,7 @@ async function run() {
} catch (error) {
console.error(error);
core.setFailed(error);

return;
}
} else {
Expand Down

0 comments on commit 421f299

Please sign in to comment.