From 5d95fffe5c7d791b7beaddb68d35b4650e97c751 Mon Sep 17 00:00:00 2001 From: ReenigneArcher <42013603+ReenigneArcher@users.noreply.github.com> Date: Tue, 18 Aug 2026 18:55:19 -0400 Subject: [PATCH] ci(winget): automatically update winget on releases --- .github/workflows/_update-winget-repo.yml | 32 +++++++++++++++++++++++ README.md | 2 ++ 2 files changed, 34 insertions(+) create mode 100644 .github/workflows/_update-winget-repo.yml diff --git a/.github/workflows/_update-winget-repo.yml b/.github/workflows/_update-winget-repo.yml new file mode 100644 index 0000000..106a83b --- /dev/null +++ b/.github/workflows/_update-winget-repo.yml @@ -0,0 +1,32 @@ +--- +# This workflow is centrally managed in https://github.com/LizardByte/.github/ +# Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in +# the above-mentioned repo. + +# To use, add the `winget-pkg` repository label to identify repositories that should trigger this workflow. + +# Update Winget on release events. + +name: Update Winget repo +permissions: {} + +on: + release: + types: + - released + +concurrency: + group: "${{ github.workflow }}-${{ github.event.release.tag_name }}" + cancel-in-progress: true + +jobs: + update-winget-repo: + name: Update Winget repo + uses: LizardByte/.github/.github/workflows/__call-update-winget-repo.yml@master + if: github.repository_owner == 'LizardByte' + permissions: + contents: read + with: + gh_name: ${{ vars.GH_BOT_NAME }} + secrets: + GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} diff --git a/README.md b/README.md index d30d303..964c730 100644 --- a/README.md +++ b/README.md @@ -10,6 +10,8 @@