Package Version Bump #9
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: 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.KOMAC_GH_PAT }} |