chore(deps): update bot deps (#1659) #595
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go Fix Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| jobs: | |
| gofix: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Download Go modules | |
| run: go mod download | |
| - name: Check for go fix suggestions | |
| run: | | |
| OUTPUT=$(go fix -diff ./... 2>&1) | |
| if [ -n "$OUTPUT" ]; then | |
| echo "::error::go fix found modernization opportunities" | |
| echo "" | |
| echo "$OUTPUT" | |
| echo "" | |
| echo "Run 'go fix ./...' locally and commit the changes." | |
| exit 1 | |
| fi | |
| echo "✓ No go fix suggestions - code is up to date." |