chore: typo imformat output (#84)

This commit is contained in:
Hardy 2025-01-14 18:16:32 +08:00 committed by GitHub
parent 6d47ae9731
commit bdbb753328
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 11 additions and 1 deletions

View File

@ -126,7 +126,17 @@ jobs:
- name: Fail workflow if changes after format - name: Fail workflow if changes after format
if: steps.check-changes.outputs.changes == 'true' if: steps.check-changes.outputs.changes == 'true'
run: exit 1 run: |
export WORKBASE=$HOME/go/src/infini.sh
export WORK=$WORKBASE/$PNAME
# for foramt check
cd $WORK && echo
git status --porcelain | grep " M .*\.go$"
echo "----------------------------------------------------------------------------------"
echo "IMPORTANT: Above files are not formatted, please run 'make format' to format them."
echo "----------------------------------------------------------------------------------"
exit 1
unit_test: unit_test:
runs-on: ubuntu-latest runs-on: ubuntu-latest