1
0
Fork 0
mirror of https://code.forgejo.org/actions/forgejo-release.git synced 2026-05-06 18:47:35 +02:00
This commit is contained in:
Niklas Koll 2026-02-09 11:02:59 +01:00
parent 94a60cb661
commit 8dc53bb34f
2 changed files with 34 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 }}"