Skip to content

Commit

Permalink
fix: deprecated github actions (#4559)
Browse files Browse the repository at this point in the history
* fix: deprecated github actions

* output
  • Loading branch information
bassmang authored Apr 7, 2023
1 parent 8b9a750 commit 0cc3326
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/dotnet_nugets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ jobs:
version=$(./utl/version_number.py)
version_trimmed=$(echo $version | sed 's/\+.*//')
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "::set-output name=version_trimmed::$version_trimmed"
echo "version=$version" >> $GITHUB_OUTPUT
echo "version_trimmed=$version_trimmed" >> $GITHUB_OUTPUT
# Build .NET Core, all platforms
- name: Configure .NET Core
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
cd nuget_staging
nuget pack dotnet.nuspec
$NugetFileName = Get-ChildItem *.nupkg -name
echo "::set-output name=NugetFileName::$NugetFileName"
echo "NugetFileName=$NugetFileName" >> $GITHUB_OUTPUT
- name: Upload Combined
if: ${{ startsWith(matrix.config.os, 'windows') }}
uses: actions/upload-artifact@v1
Expand All @@ -128,7 +128,7 @@ jobs:
cd nuget_staging
nuget pack dotnetcore_runtime.nuspec
NugetFileName=(*runtime*.nupkg)
echo "::set-output name=NugetFileName::${NugetFileName[0]}"
echo "NugetFileName=${NugetFileName[0]}" >> $GITHUB_OUTPUT
- name: Upload .NET Core Runtime
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -162,7 +162,7 @@ jobs:
run: |
version=$(./utl/version_number.py)
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
# Download the previously built Nuget packages
- name: Clear nuget cache
Expand Down Expand Up @@ -221,7 +221,7 @@ jobs:
run: |
version=$(./utl/version_number.py)
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
# Download the previously built Nuget packages
- name: Clear nuget cache
Expand Down Expand Up @@ -286,7 +286,7 @@ jobs:
run: |
version=$(./utl/version_number.py)
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
# Download the previously built Nuget packages
- name: Clear nuget cache
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/native_nugets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: |
version=$(./utl/version_number.py)
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
# Compile code
- name: Configure
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
cd nuget_staging
nuget pack .\vowpalwabbit.nuspec
$NugetFileName = Get-ChildItem *.nupkg -name
echo "::set-output name=NugetFileName::$NugetFileName"
echo "NugetFileName=$NugetFileName" >> $GITHUB_OUTPUT
- name: Upload
uses: actions/upload-artifact@v1
with:
Expand Down Expand Up @@ -112,7 +112,7 @@ jobs:
run: |
version=$(./utl/version_number.py)
echo "Generated version number: $version"
echo "::set-output name=version::$version"
echo "version=$version" >> $GITHUB_OUTPUT
# Download and install nuget
- uses: actions/download-artifact@v1
Expand Down

0 comments on commit 0cc3326

Please sign in to comment.