diff --git a/.github/workflows/meta.yml b/.github/workflows/meta.yml index dd532b7..989d226 100644 --- a/.github/workflows/meta.yml +++ b/.github/workflows/meta.yml @@ -36,6 +36,8 @@ jobs: - name: Update metainfo run: pnpm generateMeta + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload metainfo to release run: | diff --git a/scripts/utils/generateMeta.mts b/scripts/utils/generateMeta.mts index 486f657..9120a2a 100644 --- a/scripts/utils/generateMeta.mts +++ b/scripts/utils/generateMeta.mts @@ -46,7 +46,8 @@ function generateDescription(description: string, descriptionNode: Element) { const releases = await fetch("https://api.github.com/repos/Vencord/Vesktop/releases", { headers: { Accept: "application/vnd.github+json", - "X-Github-Api-Version": "2022-11-28" + "X-Github-Api-Version": "2022-11-28", + Authorization: `Bearer ${process.env.GITHUB_TOKEN}` } }).then(res => res.json());