GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs/.github/workflows/line-endings.yml at main · github/docs

Expand file tree

/

line-endings.yml

Copy path
View runs
More file actions
More file actions

Latest commit

 

History

History
History
37 lines (31 loc) · 1.25 KB
/

line-endings.yml

Copy path

File metadata and controls

37 lines (31 loc) · 1.25 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Line endings
# .gitattributes (*.md text eol=lf, * text=auto) normalizes local adds and checkouts,
# but CRLF blobs from server-side squash merges look modified and break peter-evans/create-pull-request.
on:
workflow_dispatch:
merge_group:
pull_request:
permissions:
contents: read
# Cancel older runs for the same ref to save runner time.
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
line-endings:
if: github.repository == 'github/docs-internal' || github.repository == 'github/docs'
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Check line endings
# Re-stage through .gitattributes so git can detect blobs that check out differently.
run: |
git add --renormalize .
if ! git diff --cached --quiet; then
echo "::error::These files violate .gitattributes line-ending rules (usually CRLF that should be LF):"
git diff --cached --name-only
echo ""
echo "Fix locally with: git add --renormalize . && git commit"
exit 1
fi
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.