Skip to content

Commit

Permalink
♻️ switch back to normal releases - pull debug stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed May 20, 2024
1 parent 070a250 commit 094e426
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 15 deletions.
2 changes: 1 addition & 1 deletion badges/coverage.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 9 additions & 9 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 3 additions & 4 deletions src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ export async function install({
}): Promise<void> {
const octokit = github.getOctokit(token)

/* get a prerelease */
/* get a prerelease
const { data: releases } = await octokit.rest.repos.listReleases({
owner,
repo,
})
const prereleases = releases.filter(release => release.prerelease)
const release = prereleases[0]
*/

/* get the latest release
// get the latest release
const { data: release } = await octokit.rest.repos.getLatestRelease({
owner,
repo,
})
*/

const asset = release.assets.find(a =>
a.name.match(/vci_.*_linux_amd64.tar.gz/),
Expand All @@ -58,7 +58,6 @@ export async function install({
await exec(
`sudo mv ${asset.name.replace('.tar.gz', '')}/bin/vci /usr/local/bin/vci`,
)
await exec(`sudo chmod 755 /usr/local/bin/vci`)
await exec(`rm -rf ${asset.name.replace('.tar.gz', '')}`)
await exec(`vci version`)
}

0 comments on commit 094e426

Please sign in to comment.