Skip to content

Commit 118de7c

Browse files
Merge pull request #108 from Lemon73-Computing/lemon73/fix-format-ci
[CI] Fixed Code Format Checker
2 parents c528a55 + 1d3d15f commit 118de7c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/dotnet-autoformat-pr-push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ permissions:
1212
jobs:
1313
push-and-notify:
1414
name: Push autoformatted code and notify user
15-
runs-on: ubuntu-latest
15+
runs-on: windows-latest
1616
if: >
1717
github.event.workflow_run.event == 'pull_request' &&
1818
github.event.workflow_run.conclusion == 'success'
1919
steps:
2020
- name: 'Push autoformatted patch'
21-
uses: rolfbjarne/autoformat-push@v0.2
21+
uses: rolfbjarne/autoformat-push@v0.5
2222
with:
2323
githubToken: ${{ secrets.GITHUB_TOKEN }}
2424
commentContents: 'Thank you for your pull request. We are auto-formatting your source code to follow our code guidelines.'

.github/workflows/dotnet-autoformat-pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ permissions:
88
jobs:
99
autoformat-code:
1010
name: code format check
11-
runs-on: ubuntu-latest
11+
runs-on: windows-latest
1212

1313
steps:
1414
- name: 'Autoformat'
15-
uses: rolfbjarne/autoformat@v0.2
15+
uses: rolfbjarne/autoformat@v0.5
1616
with:
1717
script: 'dotnet format Microsoft.Maui.sln --no-restore --exclude Templates/src BlazorWebView/src/SharedSource/BlazorWebViewDeveloperTools.cs BlazorWebView/src/SharedSource/BlazorWebViewServiceCollectionExtensions.cs Graphics/src/Graphics.Win2D/W2DCanvas.cs Graphics/src/Graphics.Win2D/W2DExtensions.cs'
1818
onlyFilesModifiedInPullRequest: true

0 commit comments

Comments
 (0)