Package Version Bump #6
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## | |
## 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 }} |