Skip to content

Commit

Permalink
Update the dist again...
Browse files Browse the repository at this point in the history
  • Loading branch information
Tatskaari committed Sep 30, 2021
1 parent 1dab236 commit ce9ae88
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8513,12 +8513,16 @@ async function run() {
core.setFailed("Couldn't find changes for v" + version);
}


const releaseUrl = await octokit.rest.repos.getReleaseByTag({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
tag: "v" + version,
}).catch(_ => {})
let releaseUrl
try {
releaseUrl = await octokit.rest.repos.getReleaseByTag({
owner: github.context.repo.owner,
repo: github.context.repo.repo,
tag: "v" + version,
})
} catch (_) {
// This thing throws an exception on 404...
}

if (releaseUrl !== undefined) {
core.info("Release already created. Nothing to do: " + releaseUrl)
Expand Down

0 comments on commit ce9ae88

Please sign in to comment.