diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 3ee971a404..0bde233788 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -41,7 +41,7 @@ jobs: })).data let latest_release - const latest_release_current_branch = releases.find(release => !release.draft && release.tag_name.includes(ref.split("-")[1])) + const latest_release_current_branch = releases.find(release => !release.draft && release.tag_name.startsWith("v" + ref.split("-")[1])) if (latest_release_current_branch === undefined){ latest_release = (await github.rest.repos.getLatestRelease({