|
| 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 | + |
| 46 | + message: '[skip ci] :sparkles: Update `values.yml` in Helm chart' |
| 47 | + push: true |
0 commit comments