remove changelog
This commit is contained in:
parent
1a8b7a33ef
commit
6ed53054c3
@ -70,24 +70,6 @@ jobs:
|
|||||||
echo "artifact_name=${ARTIFACT_NAME}" >> $GITHUB_OUTPUT
|
echo "artifact_name=${ARTIFACT_NAME}" >> $GITHUB_OUTPUT
|
||||||
echo "Found artifact: ${ARTIFACT}"
|
echo "Found artifact: ${ARTIFACT}"
|
||||||
|
|
||||||
- name: Generate changelog
|
|
||||||
id: changelog
|
|
||||||
run: |
|
|
||||||
# Get commits since last tag
|
|
||||||
PREV_TAG=$(git tag --sort=-creatordate | grep -v "${{ steps.get_version.outputs.version }}" | head -n 1)
|
|
||||||
if [ -z "$PREV_TAG" ]; then
|
|
||||||
CHANGELOG=$(git log --pretty=format:"- %s (%h)" --no-merges)
|
|
||||||
else
|
|
||||||
CHANGELOG=$(git log ${PREV_TAG}..${{ steps.get_version.outputs.version }} --pretty=format:"- %s (%h)" --no-merges)
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Save to file for release notes
|
|
||||||
echo "## What's Changed" > RELEASE_NOTES.md
|
|
||||||
echo "" >> RELEASE_NOTES.md
|
|
||||||
echo "${CHANGELOG}" >> RELEASE_NOTES.md
|
|
||||||
echo "" >> RELEASE_NOTES.md
|
|
||||||
echo "**Full Changelog**: ${PREV_TAG}...${{ steps.get_version.outputs.version }}" >> RELEASE_NOTES.md
|
|
||||||
|
|
||||||
- name: Create Release
|
- name: Create Release
|
||||||
env:
|
env:
|
||||||
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
@ -97,8 +79,9 @@ jobs:
|
|||||||
REPO_NAME="${{ github.event.repository.name }}"
|
REPO_NAME="${{ github.event.repository.name }}"
|
||||||
GITEA_URL="${{ github.server_url }}"
|
GITEA_URL="${{ github.server_url }}"
|
||||||
|
|
||||||
# Prepare release body as JSON
|
# Prepare release body
|
||||||
RELEASE_BODY=$(cat RELEASE_NOTES.md | jq -Rs .)
|
RELEASE_BODY="SRFPlay Jellyfin Plugin ${{ steps.get_version.outputs.version }}\n\nSee attached files for plugin installation."
|
||||||
|
RELEASE_BODY_JSON=$(echo -n "${RELEASE_BODY}" | jq -Rs .)
|
||||||
|
|
||||||
# Create release using Gitea API
|
# Create release using Gitea API
|
||||||
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
|
RESPONSE=$(curl -s -w "\n%{http_code}" -X POST \
|
||||||
@ -108,7 +91,7 @@ jobs:
|
|||||||
-d "{
|
-d "{
|
||||||
\"tag_name\": \"${{ steps.get_version.outputs.version }}\",
|
\"tag_name\": \"${{ steps.get_version.outputs.version }}\",
|
||||||
\"name\": \"Release ${{ steps.get_version.outputs.version }}\",
|
\"name\": \"Release ${{ steps.get_version.outputs.version }}\",
|
||||||
\"body\": ${RELEASE_BODY},
|
\"body\": ${RELEASE_BODY_JSON},
|
||||||
\"draft\": false,
|
\"draft\": false,
|
||||||
\"prerelease\": false
|
\"prerelease\": false
|
||||||
}")
|
}")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user