Change Winget Releaser job to ubuntu-latest (#2122)

This commit is contained in:
sitiom 2023-08-22 02:24:14 +08:00 committed by GitHub
parent d3823f9df0
commit 49e1dc43ea
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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