Skip to content

WIP: I fucking hate this #15

WIP: I fucking hate this

WIP: I fucking hate this #15

Workflow file for this run

name: .NET Format
on:
workflow_dispatch:
pull_request:
paths:
- '**.cs'
- '**.yml' # assume ci/cd pipeline files
jobs:
test:
runs-on: windows-latest
permissions:
contents: write
env:
DOTNET_CLI_TELEMETRY_OPTOUT: true
DOTNET_NOLOGO: true
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
- name: .NET restore
run: dotnet restore --nologo --configfile Nuget.config
- name: .NET clean
run: dotnet clean --nologo
- name: .NET format
run: dotnet format --no-restore
- uses: actions/checkout@v4
- with:
ref: ${{ github.head_ref }}
- run: |
git config user.name "github-actions[bot]"
git config user.email "170472707+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "[skip CI] CI/CD: format code"
git push