Skip to content

Package Version Bump #11

Package Version Bump

Package Version Bump #11

##
## 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
env:
GIT_USER_NAME: Hiro DevOps
GIT_USER_EMAIL: 45208873+blockstack-devops@users.noreply.github.com
jobs:
winget:
name: Winget
runs-on: windows-latest
steps:
- name: Winget version bump
env:
TAG: ${{ github.event.client_payload.tag || github.event.inputs.tag }}
run: |
# Get version info
VERSION=$(echo "${TAG#v}")
# Configure git configs
git config --global user.name "${env:GIT_USER_NAME}"
git config --global user.email "${env:GIT_USER_EMAIL}"
# Get wingetcreate
iwr https://aka.ms/wingetcreate/latest -OutFile wingetcreate.exe
# Update manifest and submit PR
./wingetcreate.exe update `
--urls https://github.com/${{ github.repository }}/releases/download/${env:TAG}/chainhook-windows-x64.msi `
--version ${VERSION} `
--token ${{ secrets.GH_TOKEN }} `
--submit `
HiroSystems.Chainhook