From 3c3aa35f0e6b7da9dfca93d993c92f5f4a12af8f Mon Sep 17 00:00:00 2001 From: Christian Cwienk Date: Fri, 17 Jan 2025 20:11:48 +0100 Subject: [PATCH] allow passing release-notes via filesystem (from previous step) --- .github/actions/draft-release/action.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/actions/draft-release/action.yaml b/.github/actions/draft-release/action.yaml index 71725abbf..186281c5c 100644 --- a/.github/actions/draft-release/action.yaml +++ b/.github/actions/draft-release/action.yaml @@ -26,7 +26,10 @@ runs: shell: sh run: | set -eu - echo "${{ inputs.release-notes }}" > release-notes.md + if [ -n "${{ inputs.release-notes }}" ]; then + echo "${{ inputs.release-notes }}" > release-notes.md + fi + # if not passed via input, expect file `release-notes.md` echo "release-notes:" cat release-notes.md