A reusable workflow for linting end-of-line sequences. This workflow is a wrapper for check-eol-composite.
Add a new workflow under .github/workflows/
with the following contents.
name: Check End-of-Line Sequences
run-name: Check End-of-Line Sequences
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
jobs:
check-eol:
uses: Arthri/check-eol/.github/workflows/check-eol.yml@v1
Some configuration options are documented at https://github.com/Arthri/check-eol-composite#readme.
$GITHUB_SHA
is used by actions/checkout@v3
as the default commitish to checkout. The following example sets dev
as the ref to checkout.
jobs:
check-eol:
uses: Arthri/check-eol/.github/workflows/check-eol.yml@v1
with:
checkout-ref: dev
The reusable workflow is not limited to pushes and pull requests, other types of events such as releases are also supported.