From 6dae544af4e27616ea2d5c4f5b9036b6ba842205 Mon Sep 17 00:00:00 2001 From: xHyroM Date: Tue, 12 Jul 2022 18:43:56 +0200 Subject: [PATCH] fix: correct repo for misc test builds --- dist/utils/getGithubRelease.js | 2 +- src/utils/getGithubRelease.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/utils/getGithubRelease.js b/dist/utils/getGithubRelease.js index 8cb70c7..993a8e8 100644 --- a/dist/utils/getGithubRelease.js +++ b/dist/utils/getGithubRelease.js @@ -2,7 +2,7 @@ import { getInput } from '@actions/core'; import fetch from 'node-fetch'; export default async (version, token) => { const miscTestBuilds = (getInput('misc-test-builds') === 'true'); - const repository = miscTestBuilds ? miscTestBuilds : 'oven-sh/bun'; + const repository = miscTestBuilds ? 'oven-sh/misc-test-builds' : 'oven-sh/bun'; let url; if (version === 'latest') url = `https://api.github.com/repos/${repository}/releases/latest`; diff --git a/src/utils/getGithubRelease.ts b/src/utils/getGithubRelease.ts index 855c9a0..d81d7d0 100644 --- a/src/utils/getGithubRelease.ts +++ b/src/utils/getGithubRelease.ts @@ -17,7 +17,7 @@ export interface Release { export default async(version: string, token: string): Promise => { const miscTestBuilds = (getInput('misc-test-builds') === 'true'); - const repository = miscTestBuilds ? miscTestBuilds : 'oven-sh/bun' + const repository = miscTestBuilds ? 'oven-sh/misc-test-builds' : 'oven-sh/bun' let url; if (version === 'latest') url = `https://api.github.com/repos/${repository}/releases/latest`; else url = `https://api.github.com/repos/${repository}/releases/tags/bun-v${version}`;