Skip to content

Commit

Permalink
fix generate release not allowing non-draft releases
Browse files Browse the repository at this point in the history
  • Loading branch information
radj307 committed Mar 22, 2022
1 parent b25635c commit 9dca1be
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/GenerateRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Generate Release

on:
push:
tags: '*.*.*'
tags: [ '*.*.*' ]
workflow_dispatch:
inputs:
name:
Expand All @@ -18,17 +18,17 @@ on:
is-draft:
description: 'Draft'
required: false
default: 'false'
default: false
type: boolean
is-prerelease:
description: 'Pre-Release'
required: false
default: 'false'
default: false
type: boolean
autogenerate:
description: 'Autogenerate Release Notes'
required: false
default: 'false'
default: false
type: boolean
body:
description: 'Description'
Expand Down Expand Up @@ -117,8 +117,6 @@ jobs:
create-release:
needs: create-binaries
runs-on: ubuntu-latest
strategy:
max-parallel: 1

steps:
# Download Artifacts
Expand All @@ -145,7 +143,7 @@ jobs:
#if: ${{ github.event_name == 'workflow_dispatch' }}
uses: softprops/action-gh-release@v1
with:
draft: ${{ github.event.inputs.is-draft || true }}
draft: ${{ github.event.inputs.is-draft }}
prerelease: ${{ github.event.inputs.is-prerelease || false }}
tag_name: ${{ steps.get_version.outputs.VERSION }}
name: ${{ steps.get_version.outputs.NAME }}
Expand Down

0 comments on commit 9dca1be

Please sign in to comment.