patch: Spooky Wednesday Pro #85
Workflow file for this run
This file contains 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
# Validate that there are no files in the repo with invalid line endings | |
# Files in the repo should contain LF | |
# The git checkout will transform them to CRLF (configured in the .gitattributes file) | |
# see https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings | |
name: CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "master" ] | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check for changes on a fresh checkout | |
run: | | |
if [[ -n $(git status --porcelain) ]]; then | |
git status | |
echo "Found changes in a fresh checkout, probably files have been checked in with invalid line endings. See https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings#refreshing-a-repository-after-changing-line-endings" | |
exit 1 | |
fi |