Skip to content

Package Version Bump #6

Package Version Bump

Package Version Bump #6

##
## Bumps the Chainhook version listed on various package managers.
##
name: Package Version Bump
on:
workflow_dispatch:
inputs:
tag:
description: 'The tag of the release.'
required: true
repository_dispatch:
types:
- released
jobs:
winget_komac:
name: Publish to Winget via Komac
runs-on: windows-latest
steps:
- 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 }}