Skip to content

Commit 7aa773d

Browse files
authored
GitHub: Fixed XAML formatting checker (#16355)
1 parent e5ea3fa commit 7aa773d

File tree

2 files changed

+4
-14
lines changed

2 files changed

+4
-14
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ jobs:
4949

5050
if: github.repository_owner == 'files-community'
5151

52-
runs-on: ubuntu-latest
53-
defaults:
54-
run:
55-
shell: pwsh
52+
runs-on: windows-latest
5653

5754
steps:
5855

@@ -62,10 +59,8 @@ jobs:
6259
fetch-depth: 2
6360
- name: Setup .NET 8
6461
uses: actions/setup-dotnet@v4
65-
with:
66-
global-json-file: global.json
6762

68-
- name: Install XamlStyler console
63+
- name: Install XamlStyler.Console
6964
run: 'dotnet tool install --global XamlStyler.Console'
7065

7166
- name: Check XAML formatting

.github/workflows/format-xaml.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,8 @@ on:
66
jobs:
77
format-xaml:
88
if: github.event.issue.pull_request && github.event.comment.body == '/format'
9-
runs-on: ubuntu-latest
9+
runs-on: windows-latest
1010
environment: Pull Requests
11-
defaults:
12-
run:
13-
shell: pwsh
1411
permissions:
1512
contents: write
1613

@@ -48,8 +45,6 @@ jobs:
4845

4946
- name: Setup .NET 8
5047
uses: actions/setup-dotnet@v4
51-
with:
52-
global-json-file: global.json
5348

5449
- name: Set git identity
5550
if: env.CAN_RUN == 1
@@ -79,7 +74,7 @@ jobs:
7974
"CAN_RUN=0" | Out-File -FilePath $env:GITHUB_ENV -Append
8075
}
8176
82-
- name: Install Xaml Styler
77+
- name: Install XamlStyler.Console
8378
if: env.CAN_RUN == 1
8479
run: dotnet tool install --global XamlStyler.Console
8580

0 commit comments

Comments
 (0)