mirror of
https://github.com/thinkonmay/sunshine-sdk.git
synced 2025-12-30 17:49:07 +00:00
Bumps [robinraju/release-downloader](https://github.com/robinraju/release-downloader) from 1.11 to 1.12. - [Release notes](https://github.com/robinraju/release-downloader/releases) - [Commits](https://github.com/robinraju/release-downloader/compare/v1.11...v1.12) --- updated-dependencies: - dependency-name: robinraju/release-downloader dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
69 lines
2.2 KiB
YAML
69 lines
2.2 KiB
YAML
---
|
|
# This action is a candidate to centrally manage in https://github.com/<organization>/.github/
|
|
# If more Winget applications are developed, consider moving this action to the organization's .github repository,
|
|
# using the `winget-pkg` repository label to identify repositories that should trigger this workflow.
|
|
|
|
# Update Winget on release events.
|
|
|
|
name: Update Winget release
|
|
|
|
on:
|
|
release:
|
|
types: [released]
|
|
|
|
concurrency:
|
|
group: "${{ github.workflow }}-${{ github.event.release.tag_name }}"
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
update-winget-release:
|
|
if: >-
|
|
github.repository_owner == 'LizardByte'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check if Winget repo
|
|
env:
|
|
TOPIC: winget-pkg
|
|
id: check-label
|
|
uses: actions/github-script@v7
|
|
with:
|
|
script: |
|
|
const topic = process.env.TOPIC;
|
|
console.log(`Checking if repo has topic: ${topic}`);
|
|
|
|
const repoTopics = await github.rest.repos.getAllTopics({
|
|
owner: context.repo.owner,
|
|
repo: context.repo.repo
|
|
});
|
|
console.log(`Repo topics: ${repoTopics.data.names}`);
|
|
|
|
const hasTopic = repoTopics.data.names.includes(topic);
|
|
console.log(`Has topic: ${hasTopic}`);
|
|
|
|
core.setOutput('hasTopic', hasTopic);
|
|
|
|
- name: Download release asset
|
|
id: download
|
|
if: >-
|
|
steps.check-label.outputs.hasTopic == 'true'
|
|
uses: robinraju/release-downloader@v1.12
|
|
with:
|
|
repository: "${{ github.repository }}"
|
|
tag: "${{ github.event.release.tag_name }}"
|
|
fileName: "*.exe"
|
|
tarBall: false
|
|
zipBall: false
|
|
out-file-path: "release_downloads"
|
|
extract: false
|
|
|
|
- name: Release to WinGet
|
|
if: >-
|
|
steps.check-label.outputs.hasTopic == 'true' &&
|
|
fromJson(steps.download.outputs.downloaded_files)[0]
|
|
uses: vedantmgoyal2009/winget-releaser@v2
|
|
with:
|
|
identifier: "${{ github.repository_owner }}.${{ github.event.repository.name }}"
|
|
release-tag: ${{ github.event.release.tag_name }}
|
|
installers-regex: '\.exe$'
|
|
token: ${{ secrets.GH_BOT_TOKEN }}
|