mirror of
https://code.forgejo.org/actions/forgejo-release.git
synced 2026-05-06 18:47:35 +02:00
Take over changes from https://code.forgejo.org/actions/forgejo-release/pulls/100
This commit is contained in:
parent
94a60cb661
commit
8dc53bb34f
2 changed files with 34 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