Skip to content

Commit

Permalink
Merge branch 'main' into release-v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
galargh authored Mar 1, 2023
2 parents 391afa1 + a1b6e33 commit f03d160
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ async function run() {
const releases = await octokit.paginate(octokit.rest.repos.listReleases, github.context.repo)
let release = releases.find(release => release.tag_name === tag)

if (release != null || release.published_at != null) {
if (release != null && release.published_at != null) {
core.info('Release is already published')
return
}
Expand Down

0 comments on commit f03d160

Please sign in to comment.