Skip to content

Commit

Permalink
Ignore dirty submodules
Browse files Browse the repository at this point in the history
  • Loading branch information
justafish committed Aug 20, 2024
1 parent d5a1d2c commit ad330e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/TestStatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ jobs:

- name: Test for untracked and modified files
run: |
if [ "${{ steps.test_untracked.outcome }}" != "failure"]; then
if [ "${{ steps.test_untracked.outcome }}" != "failure" ]; then
exit 1
fi
git add .
Expand Down
2 changes: 1 addition & 1 deletion tasks/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ tasks:
desc: Checks for any untracked files in git
cmds:
- |
if [ "$(git status -s)" != "" ]; then
if [ "$(git status -s --ignore-submodules=dirty)" != "" ]; then
git status -s --ignore-submodules=dirty
echo "Untracked changes detected - please rectify or add the files to your .gitignore"
exit 1
Expand Down

0 comments on commit ad330e3

Please sign in to comment.