Improve linelint #2
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: ๐ Integration | |
| on: | |
| pull_request: | |
| jobs: | |
| linelint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Find files missing end line break | |
| run: | | |
| files=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }}) | |
| success=true | |
| for file in $files; do | |
| if [ -s "$file" ] && [ "$(tail -c 1 $file | wc -l)" -eq 0 ]; then | |
| echo "- $file" >> $GITHUB_STEP_SUMMARY | |
| success=false | |
| fi | |
| done | |
| if [ "$success" = false ]; then | |
| echo -e "\n:warning: ์ ํ์ผ๋ค์ ๋์ ๋๋ฝ๋ ์ค ๋ฐ๊ฟ์ ์ถ๊ฐํด ์ฃผ์ธ์." >> $GITHUB_STEP_SUMMARY | |
| exit 1 | |
| fi |