From 87ee3ddd1f91ddd205860feb9cdb5f963ffa1eac Mon Sep 17 00:00:00 2001 From: MicaiahReid Date: Fri, 14 Jun 2024 12:15:32 -0400 Subject: [PATCH] ci: bump winget release using komac --- .github/workflows/pkg-version-bump.yaml | 34 +++++-------------------- 1 file changed, 7 insertions(+), 27 deletions(-) diff --git a/.github/workflows/pkg-version-bump.yaml b/.github/workflows/pkg-version-bump.yaml index 2272fd45f..d1f37804f 100644 --- a/.github/workflows/pkg-version-bump.yaml +++ b/.github/workflows/pkg-version-bump.yaml @@ -13,34 +13,14 @@ on: types: - released -env: - GIT_USER_NAME: Hiro DevOps - GIT_USER_EMAIL: 45208873+blockstack-devops@users.noreply.github.com - jobs: - - winget: - name: Winget + winget_komac: + name: Publish to Winget via Komac 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 + - uses: vedantmgoyal2009/winget-releaser@v2 + with: + identifier: HiroSystems.Chainhook + max-versions-to-keep: 5 # keep only latest 5 versions + token: ${{ secrets.GH_TOKEN }} \ No newline at end of file