Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 2 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,7 @@ jobs:

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

runs-on: ubuntu-latest
defaults:
run:
shell: pwsh
runs-on: windows-latest

steps:

Expand All @@ -62,10 +59,8 @@ jobs:
fetch-depth: 2
- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Install XamlStyler console
- name: Install XamlStyler.Console
run: 'dotnet tool install --global XamlStyler.Console'

- name: Check XAML formatting
Expand Down
9 changes: 2 additions & 7 deletions .github/workflows/format-xaml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,8 @@ on:
jobs:
format-xaml:
if: github.event.issue.pull_request && github.event.comment.body == '/format'
runs-on: ubuntu-latest
runs-on: windows-latest
environment: Pull Requests
defaults:
run:
shell: pwsh
permissions:
contents: write

Expand Down Expand Up @@ -48,8 +45,6 @@ jobs:

- name: Setup .NET 8
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json

- name: Set git identity
if: env.CAN_RUN == 1
Expand Down Expand Up @@ -79,7 +74,7 @@ jobs:
"CAN_RUN=0" | Out-File -FilePath $env:GITHUB_ENV -Append
}

- name: Install Xaml Styler
- name: Install XamlStyler.Console
if: env.CAN_RUN == 1
run: dotnet tool install --global XamlStyler.Console

Expand Down