Skip to content

Commit

Permalink
Improve filter for last release
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacome committed Apr 12, 2022
1 parent c6d789a commit 6dd1b8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 6dd1b8c

Please sign in to comment.