From 3d501aa795b12e7f01c801765bc7a0f0af20fc3f Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Wed, 22 May 2024 03:54:19 +0000 Subject: [PATCH] chore: what happended to the readlimit file? --- .github/workflows/linter.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 0e9fae51..0019a559 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -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 - \ No newline at end of file + - name: Upload formatted files + if: failure() + uses: actions/upload-artifact@v4 + with: + name: formatted-files + path: /tmp/gofmt \ No newline at end of file