Simplify task management #578
This file contains 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 check on pull request | |
on: pull_request | |
jobs: | |
dotnet-format: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Run dotnet format | |
shell: bash | |
run: | | |
allProjectFiles=$(find ./ -type f -name "*.csproj" | tr '\n' ' '); | |
if [ $? -ne 0 ]; then exit 1; fi | |
echo "$allProjectFiles" | |
for file in $allProjectFiles; do | |
dotnet format $file --verify-no-changes --verbosity detailed | |
done |