Skip to content

Commit

Permalink
build(workflows): fix repository URL in genReleaseNote.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
Bush2021 committed Nov 12, 2024
1 parent 565b5c6 commit 3476575
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/genReleaseNote.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,14 @@ if [ -z "$version_range" ]; then
exit 1
fi

repo_url=$(git config --get remote.origin.url)
if [ -z "$repo_url" ]; then
echo "Could not determine the repository URL. Please ensure you are in a git repository." >&2
exit 1
fi

repo_url=${repo_url%.git}

new_commits=$(git log --pretty=format:"* %h %s by @%an" --grep="^feat" -i $version_range | sort -f | uniq)
if [ -n "$new_commits" ]; then
echo "## New" >> release.md
Expand All @@ -39,4 +47,4 @@ if [ -n "$maint_commits" ]; then
echo "" >> release.md
fi

echo "**Full Changelog**: https://github.com/KdeInit/chrome_plus/compare/$version_range" >> release.md
echo "**Full Changelog**: $repo_url/compare/$version_range" >> release.md

0 comments on commit 3476575

Please sign in to comment.