Skip to content

Commit

Permalink
fix getting version from workflow dispatch
Browse files Browse the repository at this point in the history
  • Loading branch information
MicaiahReid committed Jun 14, 2024
1 parent aefee42 commit 8cc1d0c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/pkg-version-bump.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,19 @@ jobs:
name: Publish to Winget via Komac
runs-on: windows-latest
steps:
- name: Winget version bump
- name: Get Version
env:
TAG: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
id: get-version
run: |
# Get version info
VERSION=$(echo "${TAG#v}")
# Pipe to step output
"version=VERSION" >> $env:GITHUB_OUTPUT
- name: Winget version bump
uses: vedantmgoyal2009/winget-releaser@v2
with:
identifier: HiroSystems.Chainhook
version: ${{ steps.get-version.outputs.version }} # use version from previous step output
max-versions-to-keep: 5 # keep only latest 5 versions
token: ${{ secrets.GH_TOKEN }}

0 comments on commit 8cc1d0c

Please sign in to comment.