---
# 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:
  contents: read

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'
    secrets:
      GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }}
