Skip to content

Commit

Permalink
fix: missing github repo context
Browse files Browse the repository at this point in the history
  • Loading branch information
keiko233 committed Apr 8, 2024
1 parent 7732e6c commit 8c99542
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/telegram-upload-nightly.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { downloadFileToBuffer } from "./utils/fetch";
import { consola } from "./utils/logger";
import { execSync } from "child_process";
import { array2text } from "./utils";
import { getOctokit } from "@actions/github";
import { context, getOctokit } from "@actions/github";

export const sendReleaseNotify = async () => {
if (!process.env.TELEGRAM_TOKEN) {
Expand All @@ -20,7 +20,7 @@ export const sendReleaseNotify = async () => {

const github = getOctokit(process.env.GITHUB_TOKEN);

const release = await github.rest.repos.getLatestRelease();
const release = await github.rest.repos.getLatestRelease(context.repo);

const fileList: {
name: string;
Expand Down

0 comments on commit 8c99542

Please sign in to comment.