Skip to content

Commit

Permalink
Upgrade ci.yml to latest actions
Browse files Browse the repository at this point in the history
  • Loading branch information
natemcmaster committed Nov 19, 2022
1 parent 2193138 commit 99bfe7b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,13 @@ jobs:
package_version: ${{ steps.build_script.outputs.package_version }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Setup .NET Core 3.1
uses: actions/setup-dotnet@v1
with:
dotnet-version: "3.1.x"
- name: Setup .NET 6
uses: actions/setup-dotnet@v1
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Run build script
Expand All @@ -54,7 +54,7 @@ jobs:
name: packages
path: artifacts/
if-no-files-found: error
- uses: codecov/codecov-action@v2
- uses: codecov/codecov-action@v3
with:
name: unittests-${{ matrix.os }}
fail_ci_if_error: true
Expand Down
4 changes: 2 additions & 2 deletions src/Directory.Build.targets
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<AdditionalFiles Include="PublicAPI.Unshipped.txt" />
</ItemGroup>

<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(IsPackable)' == 'true'">
<Message Importance="High" Text="::set-output name=package_version::$(PackageVersion)" />
<Target Name="UpdateCiSettings" Condition="'$(CI)' == 'true' AND '$(IsPackable)' == 'true' AND '$(GITHUB_OUTPUT)' != ''">
<WriteLinesToFile File="$(GITHUB_OUTPUT)" Overwrite="false" Lines="package_version=$(PackageVersion)" />
</Target>

</Project>

0 comments on commit 99bfe7b

Please sign in to comment.