Skip to content

Commit 3efb441

Browse files
committed
chore(repo-config): update .gitattributes and GitHub workflow
- Added a new .gitattributes file to normalize line endings, collapse certain files in PRs, and set specific behaviors for different file types. - Renamed the "Package Helm Charts" step to "helm - package" in the charts-release.yaml GitHub workflow. - Added a new step "github - publish - charts" to commit and push packaged charts.
1 parent 4f4a58c commit 3efb441

File tree

2 files changed

+71
-1
lines changed

2 files changed

+71
-1
lines changed

.gitattributes

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
# Set default behavior to automatically normalize line endings.
2+
* text=auto
3+
4+
# Collapse these files in PRs by default
5+
*.xlf linguist-generated=true
6+
*.lcl linguist-generated=true
7+
8+
*.jpg binary
9+
*.png binary
10+
*.gif binary
11+
12+
# Force bash scripts to always use lf line endings so that if a repo is accessed
13+
# in Unix via a file share from Windows, the scripts will work.
14+
*.in text eol=lf
15+
*.sh text eol=lf
16+
17+
# Likewise, force cmd and batch scripts to always use crlf
18+
*.cmd text eol=crlf
19+
*.bat text eol=crlf
20+
21+
*.cs text=auto diff=csharp
22+
*.vb text=auto
23+
*.resx text=auto
24+
*.c text=auto
25+
*.cpp text=auto
26+
*.cxx text=auto
27+
*.h text=auto
28+
*.hxx text=auto
29+
*.py text=auto
30+
*.rb text=auto
31+
*.java text=auto
32+
*.html text=auto
33+
*.htm text=auto
34+
*.css text=auto
35+
*.scss text=auto
36+
*.sass text=auto
37+
*.less text=auto
38+
*.js text=auto
39+
*.lisp text=auto
40+
*.clj text=auto
41+
*.sql text=auto
42+
*.php text=auto
43+
*.lua text=auto
44+
*.m text=auto
45+
*.asm text=auto
46+
*.erl text=auto
47+
*.fs text=auto
48+
*.fsx text=auto
49+
*.hs text=auto
50+
51+
*.csproj text=auto
52+
*.vbproj text=auto
53+
*.fsproj text=auto
54+
*.dbproj text=auto
55+
*.sln text=auto eol=crlf
56+
57+
# Set linguist language for .h files explicitly based on
58+
# https://github.com/github/linguist/issues/1626#issuecomment-401442069
59+
# this only affects the repo's language statistics
60+
*.h linguist-language=C

.github/workflows/charts-release.yaml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: checkout
1818
uses: actions/checkout@v4
1919

20-
- name: Package Helm Charts
20+
- name: helm - package
2121
run: |
2222
for dir in src/charts/*; do
2323
if [ -d "$dir" ]; then
@@ -28,3 +28,13 @@ jobs:
2828
echo "Packaged $chart_name to $dest_dir"
2929
fi
3030
done
31+
32+
33+
- name: github - publish - charts
34+
run: |
35+
git config user.name "Romeo Dumitrescu"
36+
git config user.email "[email protected]"
37+
git add .
38+
git status
39+
git commit -m "Published charts"
40+
git push

0 commit comments

Comments
 (0)