Skip to content

Commit

Permalink
chore: what happended to the readlimit file?
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed May 22, 2024
1 parent 3993fe7 commit 2c7d103
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ jobs:
if [ -n "$NON_COMPLIANT_FILES" ]; then
echo "The following files are not formatted correctly:"
echo "$NON_COMPLIANT_FILES"
mkdir -p /tmp/gofmt
for file in $NON_COMPLIANT_FILES; do
mkdir -p /tmp/gofmt/$(dirname $file)
gofmt -s $file > /tmp/gofmt/$file
done
exit 1
fi
- name: Upload formatted files
if: failure()
uses: actions/upload-artifact@v4
with:
name: formatted-files
path: /tmp/gofmt

0 comments on commit 2c7d103

Please sign in to comment.