Format Branch Code #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Format Branch Code | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: 0 0 * * * # Every day at midnight (UTC) | |
permissions: | |
pull-requests: write | |
contents: write | |
jobs: | |
dotnet-format: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
branch: [ main, net10.0, inflight/current ] | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v2 | |
with: | |
ref: ${{ matrix.branch }} | |
- name: Setup .NET Core SDK | |
uses: actions/[email protected] | |
with: | |
dotnet-version: 8.x | |
- name: Run dotnet format | |
run: dotnet format .\Microsoft.Maui.sln --no-restore --exclude Templates/src --exclude-diagnostics CA1822 | |
- name: Create Pull Request | |
uses: dotnet/actions-create-pull-request@v4 | |
with: | |
title: '[housekeeping] Automated PR to fix formatting errors on ${{ matrix.branch }}' | |
body: | | |
Automated PR to fix formatting errors | |
committer: GitHub <[email protected]> | |
author: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | |
labels: | | |
t/housekeeping ♻︎ | |
area-infrastructure | |
assignees: rmarinho, jsuarezruiz | |
reviewers: rmarinho, jsuarezruiz | |
branch: housekeeping/fix-codeformatting/${{ matrix.branch }} | |
base: ${{ matrix.branch }} |