Skip to content

Package Version Bump #8

Package Version Bump

Package Version Bump #8

##
## 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: Set VERSION variable
env:
TAG: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
id: get-version
run: |
# format release tag set in the workflow dispatch
$TAG = "${{ env.TAG }}"
$VERSION = $TAG -replace '^v', ''
echo "version=$VERSION" >> $env:GITHUB_OUTPUT
shell: pwsh
- 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
release-tag: v${{ steps.get-version.outputs.version }}
max-versions-to-keep: 5 # keep only latest 5 versions
token: ${{ secrets.GH_TOKEN }}