From c5ea99036abb741a89f8bf1f2cd7fba845e3313a Mon Sep 17 00:00:00 2001 From: Lars Gohr Date: Mon, 11 Nov 2024 16:11:23 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Interpret=20options=20correctly?= =?UTF-8?q?=20Fixes=20https://github.com/elgohr/Github-Release-Action/issu?= =?UTF-8?q?es/64?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release.yml | 3 ++- entrypoint.sh | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd42a1a..eb353f1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -28,13 +28,14 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: title: ${{ github.sha }} - - name: Create a tagged Release + - name: Create a tagged Pre-Release uses: elgohr/Github-Release-Action@main env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: title: ${{ github.sha }} tag: ${{ github.run_id }} + prerelease: true release: runs-on: ubuntu-latest needs: integration-test diff --git a/entrypoint.sh b/entrypoint.sh index 4eac9c4..9e7ad24 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,12 +9,12 @@ main() { INPUT_TAG="release-$(date +%Y%m%d%H%M%S)" fi - OPTIONS="" + OPTIONS="--generate-notes" if usesBoolean "${INPUT_PRERELEASE}"; then OPTIONS="${OPTIONS} --prerelease" fi - gh release create $INPUT_TAG -t "${INPUT_TITLE}" --generate-notes"${OPTIONS}" + gh release create $INPUT_TAG -t "${INPUT_TITLE}" $OPTIONS } uses() {