Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Commit

Permalink
chore: Adapt for new version format.
Browse files Browse the repository at this point in the history
We no longer prefix our versions with "v".
  • Loading branch information
thsig committed Sep 14, 2020
1 parent f766105 commit faec330
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ function run() {
console.log("Preparing formula");
// note: this excludes pre-releases
const latestRelease = yield octokit.request(`GET /repos/${srcRepo}/releases/latest`);
const version = latestRelease.data.tag_name.slice(1);
const version = latestRelease.data.tag_name
const releaseId = latestRelease.data.id;
const assets = yield octokit.request(`GET /repos/${srcRepo}/releases/${releaseId}/assets`);
const tarballUrl = lodash_1.find(assets.data, a => a.name.includes("macos")).browser_download_url;
Expand Down
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ async function run() {
// note: this excludes pre-releases
const latestRelease = await octokit.request(`GET /repos/${srcRepo}/releases/latest`)

const version = latestRelease.data.tag_name.slice(1)
const version = latestRelease.data.tag_name
const releaseId = latestRelease.data.id

const assets = await octokit.request(`GET /repos/${srcRepo}/releases/${releaseId}/assets`)
Expand Down

0 comments on commit faec330

Please sign in to comment.