mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 04:23:59 +03:00
ci: add download count badges to release notes
This commit is contained in:
@@ -253,7 +253,7 @@ jobs:
|
||||
with:
|
||||
path: artifacts
|
||||
|
||||
- name: Generate release notes (since last tag)
|
||||
- name: Generate release notes
|
||||
shell: bash
|
||||
env:
|
||||
TAG: ${{ inputs.tag }}
|
||||
@@ -261,10 +261,13 @@ jobs:
|
||||
set -euo pipefail
|
||||
git fetch --tags --force
|
||||
|
||||
VERSION="${TAG#v}"
|
||||
REPO="${GITHUB_REPOSITORY}"
|
||||
|
||||
prev_tag="$(git tag --sort=-creatordate | grep -Fxv "$TAG" | head -n 1 || true)"
|
||||
|
||||
{
|
||||
echo "## Changes"
|
||||
echo "### Changes"
|
||||
echo
|
||||
if [[ -n "$prev_tag" ]]; then
|
||||
echo "Compared to \`$prev_tag\`:"
|
||||
@@ -275,6 +278,15 @@ jobs:
|
||||
echo
|
||||
git log "${TAG}" --no-merges --pretty=format:'- %s (%h)' || true
|
||||
fi
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "### Reports"
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
echo
|
||||
} > release-notes.md
|
||||
|
||||
|
||||
Reference in New Issue
Block a user