Skip to content

Commit 5cfed6c

Browse files
committed
add CI for updating Helm values.yml
1 parent 8d00470 commit 5cfed6c

File tree

2 files changed

+56
-0
lines changed

2 files changed

+56
-0
lines changed

.github/workflows/Helm.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# 🐻‍❄️💐 ume: Easy, self-hostable, and flexible image host made in Rust
2+
# Copyright 2021-2024 Noel Towa <[email protected]>
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
16+
name: Update Values
17+
on:
18+
workflow_dispatch: {}
19+
push:
20+
paths:
21+
- './distribution/helm/values.yml'
22+
jobs:
23+
update-values:
24+
name: Update README.md for `values.yml` parameters
25+
runs-on: ubuntu-latest
26+
steps:
27+
- name: Checkout source code
28+
uses: actions/checkout@v4
29+
30+
- name: Setup Bun
31+
uses: oven-sh/setup-bun@v1
32+
33+
- name: Write values.yaml into README
34+
working-directory: ./distribution/helm
35+
run: ./scripts/emit-values
36+
37+
- name: Prettier!
38+
run: bunx prettier --config=${GITHUB_WORKSPACE}/distribution/helm/.prettierrc.json --write charts/**/README.md
39+
40+
- name: Commit!
41+
uses: EndBug/add-and-commit@v9
42+
with:
43+
author_name: Noel
44+
default_author: user_info
45+
author_email: [email protected]
46+
message: '[skip ci] :sparkles: Update `values.yml` in Helm chart'
47+
push: true

distribution/helm/.prettierrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"tabWidth": 4,
4+
"singleQuote": true,
5+
"endOfLine": "lf",
6+
"printWidth": 120,
7+
"trailingComma": "none",
8+
"bracketSpacing": true
9+
}

0 commit comments

Comments
 (0)