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:
parent
94a60cb661
commit
8fb94f88a4
9 changed files with 125 additions and 0 deletions
12
action.yml
12
action.yml
|
|
@ -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 }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue