From fc99afb3466f1dff0ebff52a0375c44980b23e1c Mon Sep 17 00:00:00 2001 From: Exzap <13877693+Exzap@users.noreply.github.com> Date: Wed, 7 Aug 2024 21:27:33 +0200 Subject: [PATCH] CI test --- .github/workflows/deploy_experimental_release.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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,