From b73ab4645bac7aad4e853983d2565c6e1484bb29 Mon Sep 17 00:00:00 2001 From: Armin Schrenk Date: Fri, 15 Jul 2022 11:14:21 +0200 Subject: [PATCH] only publish to winget, if workflow triggered by release or explicitly stated --- .github/workflows/win-exe.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/win-exe.yml b/.github/workflows/win-exe.yml index 4e3fae1d1..23d970d14 100644 --- a/.github/workflows/win-exe.yml +++ b/.github/workflows/win-exe.yml @@ -8,6 +8,11 @@ on: version: description: 'Version' required: false + winget-release: + description: 'Release artifacts to winget' + required: true + type: boolean + default: false env: JAVA_VERSION: 17 @@ -193,6 +198,7 @@ jobs: name: Publish on winget repo runs-on: windows-latest needs: [build-msi] + if: github.event.action == 'release' || inputs.winget-release steps: - name: Submit package to Windows Package Manager Community Repository run: |