Skip to content

Commit 2b95fae

Browse files
authored
Fix update dependencies workflow issue by generating a temporary sln file (#10781)
* Update workflow * Refactor update-dependencies workflow to remove unnecessary steps and streamline package updates * PR Feedback
1 parent 0b5fd1f commit 2b95fae

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/update-dependencies.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,20 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1818

19-
- name: Setup .NET 9 and 10
20-
uses: actions/setup-dotnet@b2ace4b12f4cec1b96b6361ff2694ba9e931ceb4 # v3.3.1
21-
with:
22-
dotnet-version: |
23-
9.0.x
24-
10.0.x
25-
2619
- name: Restore solution
2720
run: ./build.sh -restore
2821

2922
- name: Rewrite nuget.config
30-
run: dotnet new nugetconfig --force
23+
run: ./dotnet.sh new nugetconfig --force
3124

3225
- name: Install dotnet-outdated
33-
run: dotnet tool install --global dotnet-outdated-tool
26+
run: ./dotnet.sh tool install --global dotnet-outdated-tool
3427

3528
- name: Update packages
3629
continue-on-error: true
37-
run: dotnet outdated --no-restore -u --exclude Microsoft.FluentUI.AspNetCore ./Aspire.slnx || echo "Some dependencies could not be updated, but continuing workflow."
30+
env:
31+
DOTNET_ROOT: ${{ github.workspace }}/.dotnet # Even when calling the tool via ./dotnet.sh, dotnet tools require DOTNET_ROOT set to use the restored framework
32+
run: ./dotnet.sh outdated --no-restore -u --exclude Microsoft.FluentUI.AspNetCore ./Aspire.slnx || echo "Some dependencies could not be updated, but continuing workflow."
3833

3934
- name: Revert all changes except Directory.Packages.props files
4035
run: |

0 commit comments

Comments
 (0)