Skip to content

Commit

Permalink
add base-url output
Browse files Browse the repository at this point in the history
  • Loading branch information
jcbhmr authored Nov 4, 2023
1 parent a4c7bc5 commit a007823
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,8 @@ for (const file of await readdir(core.getInput("path"))) {
await rename(path, resolve(path, "../Home.md"));
}
}

core.setOutput(
"base-url",
`${process.env.GITHUB_SERVER}/${process.env.GITHUB_REPOSITORY}/wiki/`
);
5 changes: 5 additions & 0 deletions reverse/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,8 @@ for (const file of await readdir(core.getInput("path"))) {
console.log(`Renamed ${path} to README.md`);
}
}

core.setOutput(
"base-url",
`${process.env.GITHUB_SERVER}/${process.env.GITHUB_REPOSITORY}/tree/main/`
);

0 comments on commit a007823

Please sign in to comment.