Skip to content

Commit

Permalink
fixup, set -x, move the file out of the dir
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Jun 14, 2024
1 parent c982359 commit 800fb4a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@ jobs:
- run: |
set -x
go mod tidy
if [[ $(git ls-files . -d -m -o --exclude-standard --full-name -v | tee modified.log | wc -l) -gt 0 ]]; then
if [[ $(git ls-files . -d -m -o --exclude-standard --full-name -v | tee /tmp/modified.log | wc -l) -gt 0 ]]; then
echo "There are changed files:"
cat modified.log
cat /tmp/modified.log
git diff
exit 1
fi
if: "${{ !cancelled() }}"
working-directory: components/notebook-controller
# https://go.googlesource.com/vuln
# https://github.com/golangci/golangci-lint/issues/3094
Expand Down Expand Up @@ -84,9 +86,9 @@ jobs:
- run: |
set -x
go mod tidy
if [[ $(git ls-files . -d -m -o --exclude-standard --full-name -v | tee modified.log | wc -l) -gt 0 ]]; then
if [[ $(git ls-files . -d -m -o --exclude-standard --full-name -v | tee /tmp/modified.log | wc -l) -gt 0 ]]; then
echo "There are changed files:"
cat modified.log
cat /tmp/modified.log
git diff
exit 1
fi
Expand Down

0 comments on commit 800fb4a

Please sign in to comment.