Skip to content

Commit

Permalink
Fix invalid winget reference
Browse files Browse the repository at this point in the history
  • Loading branch information
DRSchlaubi committed Oct 25, 2024
1 parent 86de10d commit 06dc9bb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 33 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -348,4 +348,4 @@ jobs:
with:
files: signed/Tonbrett.msix
- name: Upload to winget
uses: ./.github/workflows/winget.yml
uses: ./.github/workflows/winget
Original file line number Diff line number Diff line change
@@ -1,32 +1,26 @@
name: Winget CI

on:
workflow_dispatch:
workflow_call:
release:
types:
- edited

jobs:
winget:
name: Update winget manifest
runs-on: windows-latest
steps:
- name: Setup winget-create
run: choco install wingetcreate
- name: Bump Winget manifest
shell: pwsh
env:
WINGET_GITHUB_TOKEN: '${{ secrets.WINGET_UPLOAD_GITHUB_TOKEN }}'
run: >
$tagname = $env:GITHUB_REF.Replace("refs/tags/", "")
$version = $tagname.Replace("v", "")
$url = "https://github.com/DRSchlaubi/tonbrett/releases/download/${tagname}/Tonbrett.msix"
wingetcreate.exe update Schlaubi.Tonbrett -u $url --version $version
if ($version -notmatch "-") {
wingetcreate.exe submit .\manifests\s\Schlaubi\Tonbrett\${version}\ --token $env:WINGET_GITHUB_TOKEN
}
name: 'Bump winget version'
description: 'Bumps the winget manifest'
runs:
using: "composite"
steps:
name: Update winget manifest
runs-on: windows-latest
steps:
- name: Setup winget-create
run: choco install wingetcreate
- name: Bump Winget manifest
shell: pwsh
env:
WINGET_GITHUB_TOKEN: '${{ secrets.WINGET_UPLOAD_GITHUB_TOKEN }}'
run: >
$tagname = $env:GITHUB_REF.Replace("refs/tags/", "")
$version = $tagname.Replace("v", "")
$url = "https://github.com/DRSchlaubi/tonbrett/releases/download/${tagname}/Tonbrett.msix"
wingetcreate.exe update Schlaubi.Tonbrett -u $url --version $version
if ($version -notmatch "-") {
wingetcreate.exe submit .\manifests\s\Schlaubi\Tonbrett\${version}\ --token $env:WINGET_GITHUB_TOKEN
}

0 comments on commit 06dc9bb

Please sign in to comment.