10
0
Fork 0
mirror of https://code.forgejo.org/actions/forgejo-release synced 2026-04-22 03:19:53 +00:00

feat: release notes from file (#141)

Reviewed-on: https://code.forgejo.org/actions/forgejo-release/pulls/141
Reviewed-by: Michael Kriese <michael.kriese@gmx.de>
Co-authored-by: nihklas <nihklas@noreply.code.forgejo.org>
Co-committed-by: nihklas <nihklas@noreply.code.forgejo.org>
This commit is contained in:
nihklas 2026-02-10 15:23:36 +00:00 committed by Michael Kriese
parent 94a60cb661
commit 8fb94f88a4
No known key found for this signature in database
GPG key ID: F128CBE6AB3A7201
9 changed files with 125 additions and 0 deletions

View file

@ -26,6 +26,8 @@ inputs:
default: 'dist/release'
release-notes:
description: 'Release notes'
release-notes-file:
description: 'Path to a file containing your release notes (takes priority over `release-notes`)'
direction:
description: 'Can either be `download` or `upload`'
required: true
@ -100,6 +102,16 @@ runs:
EOF
)
RELEASENOTES_FILE="${{ inputs.release-notes-file }}"
if [ ! -z "$RELEASENOTES_FILE" ]; then
if [ ! -f "$RELEASENOTES_FILE" ]; then
echo "! Release notes file $RELEASENOTES_FILE does not exist."
exit 1
fi
export RELEASENOTES=$(cat "$RELEASENOTES_FILE")
fi
export SHA="${{ inputs.sha }}"
export OVERRIDE="${{ inputs.override }}"