fix: correct repo for misc test builds

This commit is contained in:
xHyroM 2022-07-12 18:43:56 +02:00
parent 054bb2f631
commit 6dae544af4
2 changed files with 2 additions and 2 deletions

View file

@ -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`;