Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Snap to specific dot net to fix dotnet format #241

Merged
merged 16 commits into from
Jun 5, 2023
19 changes: 19 additions & 0 deletions .github/workflows/dot_net_format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,25 @@ jobs:
uses: JesseTG/rm@v1.0.3
with:
path: nuget.config

- name: Move global.sjon config to repo root
run: |
mv format/global.json global.json

- name: Setup .NET Core
uses: actions/setup-dotnet@v3
with:
dotnet-version: '7.0.203'

- name: Display dotnet format version
shell: bash
run: |
dotnet format --version

- name: Display dotnet version
shell: bash
run: |
dotnet --info

- name: Run dotnet format
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions format/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "7.0.203"
}
}