We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e8e7c5a commit 68c6ac8Copy full SHA for 68c6ac8
1 file changed
index.js
@@ -11,6 +11,9 @@ async function run() {
11
// Get the download URL for the release
12
const releaseUrl = `https://api.github.com/repos/apppackio/apppack/releases/${version}`;
13
const data = await downloadJson(releaseUrl);
14
+ if (!data.tag_name) {
15
+ throw new Error(`Invalid API response: ${JSON.stringify(data)}`);
16
+ }
17
// strip the leading "v" from the tag name
18
version = data.tag_name.slice(1);
19
// Determine the platform-specific asset name
0 commit comments