From 248f2b590270e84957c22ea82902f306b66c9750 Mon Sep 17 00:00:00 2001 From: folex <0xdxdy@gmail.com> Date: Fri, 28 May 2021 19:04:33 +0300 Subject: [PATCH] Add manual release button --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 921ca0d8..8ecb467c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,6 +9,11 @@ on: - "main" workflow_dispatch: + inputs: + draft: + description: "Whether to create draft or actual release. 'false' by default, put 'true' to make draft release" + required: false + default: false jobs: release: @@ -89,6 +94,6 @@ jobs: ${{ env.JAR }} body: | [${{ env.VERSION }} @ NPM registry](https://www.npmjs.com/package/${{ env.PKG_NAME }}/v/${{ env.VERSION }}) - draft: true + draft: ${{ github.event.inputs.draft }} prerelease: false repo_token: "${{ secrets.GITHUB_TOKEN }}"