From a79c693a3d7805d58fc4faf581ce443450262663 Mon Sep 17 00:00:00 2001 From: reymondzzzz Date: Tue, 19 Dec 2023 18:58:32 +0300 Subject: [PATCH] update publish workflow --- .github/workflows/release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4161165f..5753ad80 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,10 +1,17 @@ name: Release + on: # Trigger the workflow on pushes to only the 'main' branch (this avoids duplicate checks being run e.g. for dependabot pull requests) push: tags: - v1.* workflow_dispatch: + inputs: + lsp_branch: + required: true + description: "lsp_branch" + default: "main" + type: string jobs: # Run Gradle Wrapper Validation Action to verify the wrapper's checksum @@ -51,7 +58,7 @@ jobs: github_token: ${{secrets.GITHUB_TOKEN}} workflow: build.yml repo: smallcloudai/refact-lsp - branch: main + branch: ${{ github.event.inputs.lsp_branch }} path: ./src/main/resources/bin # Validate wrapper