From 2944e6ebb5e764e2ca5ddf793359eba10e4ca2aa Mon Sep 17 00:00:00 2001 From: Claude Date: Fri, 2 Oct 2026 09:38:20 +0000 Subject: [PATCH] ci: pin LF line endings and run CI once per pull request Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_012iLMBNwBE2GnphAsu4cjaC --- .gitattributes | 22 ++++++++++++++++++++++ .github/workflows/ci.yml | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 00000000..ee132e42 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,22 @@ +# Normalise to LF everywhere (matches .editorconfig); Windows checkouts keep LF. +* text=auto eol=lf + +*.png binary +*.jpg binary +*.jpeg binary +*.ico binary +*.dng binary +*.tif binary +*.tiff binary +*.cr2 binary +*.cr3 binary +*.nef binary +*.arw binary +*.raf binary +*.heic binary +*.webp binary +*.gif binary +*.mp4 binary +*.avi binary +*.zip binary +*.pfx binary diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6088ed24..d7ba5ae9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: ["**"] + branches: [main] pull_request: workflow_dispatch: