.github/workflows: clarify autoformat message
My first reading of this sentence was that autoformat would be added for me automatically.
@@ -51,9 +51,10 @@ jobs:
- name: Run go mod tidy on all modules
run: find . -name go.mod -execdir go mod tidy \;
# If there are any diffs from goimports or go mod tidy, fail.
- - name: Verify no changes from goimports and go mod tidy. Run goimports -w and go mod tidy or add the autoformat label if this fails.
+ - name: Verify no changes from goimports and go mod tidy. If you're reading this and the check has failed, run `goimports -w . && go mod tidy` or add the `autoformat` label to the PR.
run: |
if [ -n "$(git status --porcelain)" ]; then
+ git status # Show the files that failed to pass the check.
exit 1
fi
- name: Build code
