mirror of
https://github.com/softprops/action-gh-release.git
synced 2025-05-10 10:44:19 +00:00
address asset upload warning (#134)
* bump version * address asset upload warning * refactor to new octokit api, work around release asset upload api * format upload url * unminify to debug * try alt constructor * utilize formatted upload url * authorize upload * pass token explicitly * address conflicting uploads * remove debugging artifacts
This commit is contained in:
parent
59c3b48916
commit
003621c2ca
8 changed files with 273 additions and 218 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