mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-02 08:46:05 +03:00
2 files changed
+4
-4
No files matched your search
Vendored
+2
-2
@@ -3327,7 +3327,7 @@ exports.download = download;
|
||||
*/
|
||||
function getlatestRelease(repoPath, token) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
core.info(`Fetching latest relase for repo ${repoPath}`);
|
||||
core.info(`Fetching latest release for repo ${repoPath}`);
|
||||
const headers = { Accept: "application/vnd.github.v3+json" };
|
||||
if (token !== "") {
|
||||
headers["Authorization"] = `token ${token}`;
|
||||
@@ -3349,7 +3349,7 @@ function getlatestRelease(repoPath, token) {
|
||||
*/
|
||||
function getReleaseByTag(repoPath, tag, token) {
|
||||
return __awaiter(this, void 0, void 0, function* () {
|
||||
core.info(`Fetching relase ${tag} from repo ${repoPath}`);
|
||||
core.info(`Fetching release ${tag} from repo ${repoPath}`);
|
||||
if (tag === "") {
|
||||
throw new Error("Config error: Please input a valid tag");
|
||||
}
|
||||
|
||||
+2
-2
@@ -48,7 +48,7 @@ async function getlatestRelease(
|
||||
repoPath: string,
|
||||
token: string
|
||||
): Promise<GithubRelease> {
|
||||
core.info(`Fetching latest relase for repo ${repoPath}`)
|
||||
core.info(`Fetching latest release for repo ${repoPath}`)
|
||||
|
||||
const headers: IHeaders = {Accept: "application/vnd.github.v3+json"}
|
||||
if (token !== "") {
|
||||
@@ -83,7 +83,7 @@ async function getReleaseByTag(
|
||||
tag: string,
|
||||
token: string
|
||||
): Promise<GithubRelease> {
|
||||
core.info(`Fetching relase ${tag} from repo ${repoPath}`)
|
||||
core.info(`Fetching release ${tag} from repo ${repoPath}`)
|
||||
|
||||
if (tag === "") {
|
||||
throw new Error("Config error: Please input a valid tag")
|
||||
|
||||
Reference in new issue
Block a user