Update workflows to remove ::set-output (#2384)

remove ::set-output usage
remove `$version` asc a enviroment variable as ot's not used
This commit is contained in:
Wojciech Smoliński 2024-07-16 22:11:24 +02:00 committed by GitHub
parent df2cd71d1e
commit bc213d34d9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,7 @@ jobs:
if: github.event.pull_request.merged == true if: github.event.pull_request.merged == true
id: extract-discussion id: extract-discussion
run: | run: |
echo "::set-output name=discussion::$(echo "${{ github.event.pull_request.body }}" | grep -oP '(?<=Resolves #)\d+')" echo "discussion=$(echo '${{ github.event.pull_request.body }}' | grep -oP '(?<=Resolves #)\d+')" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Close the discussion - name: Close the discussion

View File

@ -23,8 +23,7 @@ jobs:
Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object { Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object {
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
$version = "pre"+$matches[1] $version = "pre"+$matches[1]
echo "version=$version" >> $GITHUB_ENV echo "version=$version" >> $GITHUB_OUTPUT
echo "::set-output name=version::$version"
break break
} }
} }

View File

@ -19,8 +19,7 @@ jobs:
Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object { Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object {
if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') {
$version = $matches[1] $version = $matches[1]
echo "version=$version" >> $GITHUB_ENV echo "version=$version" >> $GITHUB_OUTPUT
echo "::set-output name=version::$version"
break break
} }
} }