mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-14 20:24:20 +00:00
format upload url
This commit is contained in:
parent
11282f4ee9
commit
d9cc08588c
4 changed files with 25 additions and 3 deletions
|
@ -18,6 +18,14 @@ export interface Config {
|
|||
input_target_commitish?: string;
|
||||
}
|
||||
|
||||
export const uploadUrl = (url: string): string => {
|
||||
const templateMarkerPos = url.indexOf("{");
|
||||
if (templateMarkerPos > -1) {
|
||||
return url.substring(0, templateMarkerPos);
|
||||
}
|
||||
return url;
|
||||
};
|
||||
|
||||
export const releaseBody = (config: Config): string | undefined => {
|
||||
return (
|
||||
(config.input_body_path &&
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue