Skip to content

Commit

Permalink
TEST: check lint
Browse files Browse the repository at this point in the history
  • Loading branch information
poteto0 committed Jan 16, 2025
1 parent 87d0400 commit d4b2ea8
Show file tree
Hide file tree
Showing 3 changed files with 296 additions and 286 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,17 @@ jobs:
name: Run linter
continue-on-error: true
run: |
ruleguard -fix -rules ./rules/linter.go . || echo $? >> $LINT_RESULT
cat <<EOF > result.txt
ruleguard -fix -rules ./rules/linter.go .
EOF
- name: Create comment file
if: ${{ inputs.enable_pr_comment == true }}
run: |
cat << EOF > comment.md
Hello I'm Potetobot : ).
Thank you for your contribution.
Linting results are as follows (if none, it means no issues were found):
$(cat $LINT_RESULT)
$(cat $result.txt)
EOF
- name: Create PR comment
if: ${{ inputs.enable_pr_comment == true }}
Expand Down
Loading

0 comments on commit d4b2ea8

Please sign in to comment.