Skip to content

AODocs/check-eol

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub action to check end of line (EOL) against .gitattributes rules

GitHub Action to add to a workflow, to validate rules of EOL defined in .gitattributes files.

Result : Errors

check EOL in: .
Found file .gitignore with crlf endings but expected lf.
Found file src/test_sample_message.eml with lf endings but expected crlf.
Found file src/text_bad.txt with crlf endings but expected lf.

Result : Warnings

check EOL in: .
No EOL rule defined for README.md

Result : Success

check EOL in: .
No files with EOL errors found.

Configuration

# .github/workflows/check-eol.yml
name: Check EOL

on: push

jobs:
  my-workflow:
    name: Example workflow using the Check EOL
    runs-on: ubuntu-latest

    steps:
      - name: Checkout repository contents
        uses: actions/checkout@v1

      - name: Use this action to check EOL 
        uses: AODocs/check-eol@main
        with: # omit this mapping to use default path
          path: ./a-custom-path