diff --git a/.github/workflows/deploy_experimental_release.yml b/.github/workflows/deploy_experimental_release.yml index 25ef7962b..dbff45f04 100644 --- a/.github/workflows/deploy_experimental_release.yml +++ b/.github/workflows/deploy_experimental_release.yml @@ -24,7 +24,13 @@ jobs: repo: context.repo.repo, }); + if (!releases.length) { + console.log("No releases found."); + return "No previous release found."; + } + const latestRelease = releases[0]; + console.log(`Latest release found: ${latestRelease.tag_name} published at ${latestRelease.published_at}`); const { data: commits } = await github.rest.repos.listCommits({ owner: context.repo.owner,