mirror of
https://github.com/zhom/donutbrowser.git
synced 2026-07-25 05:40:50 +02:00
chore: prevent output truncation in release notes workflow
This commit is contained in:
@@ -104,8 +104,13 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
run: |
|
run: |
|
||||||
# Get the generated release notes
|
# Prefer reading from the response file to avoid output truncation
|
||||||
RELEASE_NOTES="${{ steps.generate-notes.outputs.response }}"
|
RESPONSE_FILE='${{ steps.generate-notes.outputs.response-file }}'
|
||||||
|
if [ -n "$RESPONSE_FILE" ] && [ -f "$RESPONSE_FILE" ]; then
|
||||||
|
RELEASE_NOTES=$(cat "$RESPONSE_FILE")
|
||||||
|
else
|
||||||
|
RELEASE_NOTES='${{ steps.generate-notes.outputs.response }}'
|
||||||
|
fi
|
||||||
|
|
||||||
# Update the release with the generated notes
|
# Update the release with the generated notes
|
||||||
gh api --method PATCH /repos/${{ github.repository }}/releases/${{ github.event.release.id }} \
|
gh api --method PATCH /repos/${{ github.repository }}/releases/${{ github.event.release.id }} \
|
||||||
|
|||||||
Reference in New Issue
Block a user