Skip to content

Commit

Permalink
chore(pre-checks): add step to check for uncommitted files
Browse files Browse the repository at this point in the history
refers to updated api specifications
  • Loading branch information
evegufy committed Oct 16, 2024
1 parent 2a6f56f commit 3904f84
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/pre-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,15 @@ jobs:
run: dotnet restore src
- name: Build
run: dotnet build src --configuration Release --no-restore
- name: Check for uncommitted files in working directory # refers to updated api specifications, please refer to /docs/api/README.md
run: |
git_status=$(git status --porcelain)
if [ -n "$git_status" ]; then
echo "Please commit the file(s) in your working directory after executing the build command"
exit 1
else
echo "No modified files found in the working directory."
fi
- name: Check Format
run: dotnet format src --verify-no-changes --no-restore
- name: Test
Expand Down

0 comments on commit 3904f84

Please sign in to comment.