diff --git a/.github/workflows/close-discussion.yml b/.github/workflows/close-discussion.yml index 11fca7aa..03a6d9b9 100644 --- a/.github/workflows/close-discussion.yml +++ b/.github/workflows/close-discussion.yml @@ -16,7 +16,7 @@ jobs: if: github.event.pull_request.merged == true id: extract-discussion 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 - name: Close the discussion diff --git a/.github/workflows/pre-release.yaml b/.github/workflows/pre-release.yaml index 4a58d4cb..12d2f286 100644 --- a/.github/workflows/pre-release.yaml +++ b/.github/workflows/pre-release.yaml @@ -23,8 +23,7 @@ jobs: Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { $version = "pre"+$matches[1] - echo "version=$version" >> $GITHUB_ENV - echo "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT break } } diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 61085b64..df5f3d5d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -19,8 +19,7 @@ jobs: Get-Content ./winutil.ps1 -TotalCount 30 | ForEach-Object { if ($_ -match 'Version\s*:\s*(\d{2}\.\d{2}\.\d{2})') { $version = $matches[1] - echo "version=$version" >> $GITHUB_ENV - echo "::set-output name=version::$version" + echo "version=$version" >> $GITHUB_OUTPUT break } }