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