Skip to content

Commit

Permalink
🐛 Interpret options correctly
Browse files Browse the repository at this point in the history
Fixes #64
  • Loading branch information
elgohr committed Nov 11, 2024
1 parent ed17bd4 commit c5ea990
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit c5ea990

Please sign in to comment.