Skip to content

Commit

Permalink
c
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkooo committed Dec 31, 2024
1 parent ec54703 commit dbd54c1
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,5 @@ jobs:

- name: Check C# Formatting
run: |
FOUND_ERROR=0
cd $GITHUB_WORKSPACE
for proj in $(find . -name "*.csproj"); do
echo "Checking format for $proj"
DIR=$(dirname "$proj")
cd "$DIR"
if ! dotnet format --verify-no-changes "$(basename "$proj")"; then
echo "Found formatting issues in $proj"
FOUND_ERROR=1
fi
cd $GITHUB_WORKSPACE
done
exit $FOUND_ERROR
find . -name "*.csproj" -exec dotnet format --verify-no-changes {} \;
# The above command's exit code will be preserved and fail the action if needed

0 comments on commit dbd54c1

Please sign in to comment.