File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,25 @@ jobs:
161161 target=x86_64-unknown-linux-gnu \
162162 push-container
163163
164+ - name : " Check for uncommitted changes"
165+ run : |
166+ git diff --exit-code
167+ if [ $? -ne 0 ]; then
168+ echo "::error::Uncommitted changes detected:"
169+ git diff
170+ exit 1
171+ fi
172+ echo "No uncommitted changes found"
173+
174+ - name : " Check for untracked files"
175+ run : |
176+ if [ -n "$(git ls-files --others --exclude-standard)" ]; then
177+ echo "::error::Untracked files detected:"
178+ git ls-files --others --exclude-standard
179+ exit 1
180+ fi
181+ echo "No untracked files found"
182+
164183 - name : " print container image name"
165184 if : ${{ matrix.profile.sterile == 'sterile' && (matrix.profile.name == 'release' || matrix.profile.name == 'debug') }}
166185 run : |
You can’t perform that action at this time.
0 commit comments