diff --git a/api/v3/releases.functions b/api/v3/releases.functions index e3d9396..ae0d6a4 100644 --- a/api/v3/releases.functions +++ b/api/v3/releases.functions @@ -118,10 +118,13 @@ github_api_v3_releases_uploadAsset() local contentType="$3" local label="$4" + local urlencode_template_variable_name="$(core_compatibility_basename "$filePath")" + local urlencode_template_variable_label="$label" + local url="$(urlencode_template "$uploadUrlTemplate")" + local curl_uploadFile="$filePath" local curl_httpStatusCode - local urlencode_template_variable_name="$(core_compatibility_basename "$filePath")" - _github_api_v3_absolute_PUT "$(urlencode_template "$uploadUrlTemplate")" 'Content-Type' "$contentType" + _github_api_v3_absolute_PUT "$url" 'Content-Type' "$contentType" unset curl_uploadFile if [ $curl_httpStatusCode -ne 201 ]; then diff --git a/api/v3/v3.functions b/api/v3/v3.functions index 799d687..85b606d 100644 --- a/api/v3/v3.functions +++ b/api/v3/v3.functions @@ -15,6 +15,7 @@ core_usesIn urlencode template core_usesIn jsonreader core_usesIn jsonwriter +core_dependency_requires '*' cat github_api_v3_initialise() { local tokenFilePath="$1" @@ -25,8 +26,9 @@ github_api_v3_initialise() else github_api_v3_endpoint='https://api.github.com' fi - - local githubOAuth2PersonalAccessToken="$(<"$tokenFilePath")" + + # "$(