Skip to content

Commit 4f19070

Browse files
committed
fix: checking logic
1 parent 9c76c88 commit 4f19070

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/sdk/linear-changeset.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,13 +56,13 @@ export class LinearChangesetSdk {
5656
headers: { 'Content-Type': 'application/json' }
5757
})
5858

59-
const json = (await response.json()) as GetProjectVersionsResponse
60-
61-
if (!json.releases) {
59+
if (response.status === 404) {
6260
core.info(`No tags found`)
6361
return []
6462
}
6563

64+
const json = (await response.json()) as GetProjectVersionsResponse
65+
6666
json.releases.forEach(r => {
6767
core.info(`Found tag: ${r.appName} ${r.version}`)
6868
})

0 commit comments

Comments
 (0)