Skip to content

Commit 49e1dc4

Browse files
authored
Change Winget Releaser job to ubuntu-latest (#2122)
1 parent d3823f9 commit 49e1dc4

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/winget.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@ on:
66

77
jobs:
88
publish:
9-
runs-on: windows-latest # Action can only be run on windows
9+
runs-on: ubuntu-latest
10+
1011
steps:
1112
- name: Extract version from tag
1213
id: extract_version
1314
run: |
14-
$version = [regex]::Match("${{ github.event.release.tag_name }}", "(?<=v)[\d.]+").Value
15-
Write-Output "version=$version" >> $env:GITHUB_OUTPUT
16-
- uses: vedantmgoyal2009/winget-releaser@44e43128f96fe5b4505d6e1f726ebb78ed228654
15+
version=$(echo "${{ github.event.release.tag_name }}" | grep -oP "(?<=v)[\d.]+")
16+
echo "version=$version" >> $GITHUB_OUTPUT
17+
- uses: vedantmgoyal2009/winget-releaser@22fcaf202ea4df1e621b6fc0c88be192ede74c92
1718
with:
1819
identifier: Microsoft.OpenSSH.Beta
1920
version: ${{ steps.extract_version.outputs.version }}

0 commit comments

Comments
 (0)