From 1cbf271f46c5649d7f16ed372bed0ac51923d7bc Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Thu, 9 Jan 2025 12:45:30 +0100 Subject: [PATCH] Pass tag to release as input to publish-winget workflow --- .github/workflows/publish-winget.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/publish-winget.yml b/.github/workflows/publish-winget.yml index dd3aebcbd9..2670771020 100644 --- a/.github/workflows/publish-winget.yml +++ b/.github/workflows/publish-winget.yml @@ -2,6 +2,10 @@ name: publish-winget on: workflow_dispatch: + inputs: + tag: + description: 'Tag to publish' + default: '' jobs: publish-to-winget-pkgs: @@ -18,3 +22,7 @@ jobs: installers-regex: 'windows_.*-signed\.zip$' # Only signed Windows releases token: ${{ secrets.ENG_DEV_ECOSYSTEM_BOT_TOKEN }} fork-user: eng-dev-ecosystem-bot + + # Use the tag from the input, or the ref name if the input is not provided. + # The ref name is equal to the tag name when this workflow is triggered by the "sign-cli" command. + release-tag: ${{ inputs.tag || github.ref_name }}