-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (36 loc) · 1.16 KB
/
sync-chart-created.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
on:
repository_dispatch:
types:
- chart-created
jobs:
build-index:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Set up Go 1.21.x
uses: actions/setup-go@v4
with:
go-version: 1.21.x
id: go
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get chart package
working-directory: ${{ github.workspace }}
run: |
make get-chart \
BROWSER_DOWNLOAD_URL="${{ github.event.client_payload.browser_download_url }}" \
CHART_NAME="${{ github.event.client_payload.chart }}" \
CHART_VERSION="${{ github.event.client_payload.version }}"
- name: Update local index
run: |
make helm-index
- name: Commit the changes
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.email "${{ github.actor }}@users.noreply.github.com"
git add charts
git commit -m "Sync created chart ${{ github.event.client_payload.chart }} version ${{ github.event.client_payload.version }}"
git push