-
Notifications
You must be signed in to change notification settings - Fork 5
47 lines (42 loc) · 1.2 KB
/
cr.yaml
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
38
39
40
41
42
43
44
45
46
47
name: Release Charts
on:
push:
branches:
- main
paths:
- 'charts/**/Chart.yaml'
jobs:
release:
runs-on: ubuntu-latest
steps:
#- id: files
# uses: jitterbit/get-changed-files@v1
#- run: |
# for changed_file in ${{ steps.files.outputs.all }}; do
# echo "Do something with this ${changed_file}."
# done
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Install Helm
uses: azure/setup-helm@v3
with:
version: v3.11.0
- name: Add repos
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
- name: Run helm-docs
run: |
GOBIN=$PWD GO111MODULE=on go install github.com/norwoodj/helm-docs/cmd/helm-docs@latest
./helm-docs --sort-values-order file
rm helm-docs
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.PAT }}"
CR_SKIP_EXISTING: true