-
Notifications
You must be signed in to change notification settings - Fork 142
58 lines (51 loc) · 1.76 KB
/
chart-public-files.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
48
49
50
51
52
53
54
55
56
57
58
# Copy files to the gh-pages branch to have clean and shorter links.
# Example: https://helm.camunda.io/camunda-platform/values/values-latest.yaml
name: "Chart - Public Files"
on:
push:
branches:
- main
paths:
- '.github/workflows/chart-public-files.yaml'
- 'charts/camunda-platform*/values*.yaml'
- 'scripts/templates/version-matrix/*'
- 'version-matrix/**'
workflow_dispatch: { }
permissions:
contents: read
jobs:
copy-files:
name: Copy chart public files
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
ref: gh-pages
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
with:
path: main
- name: Copy files
run: |
#
# Values files.
mkdir -p camunda-platform/values
# Latest version.
cp -a main/charts/camunda-platform-latest/values-latest.yaml camunda-platform/values/values-latest.yaml
# Previous versions.
find main/charts -name "camunda-platform-*" | while read chart_id; do
camunda_version="$(echo ${chart_id} | cut -d '-' -f 3)";
echo "cp -a main/${chart_id}/values-latest.yaml camunda-platform/values/values-v${camunda_version}.yaml";
done
#
# Version matrix.
mkdir -p camunda-platform/version-matrix
cp -a main/version-matrix/* camunda-platform/version-matrix/
#
# Post run.
rm -rf main
find .
- uses: EndBug/add-and-commit@a94899bca583c204427a224a7af87c02f9b325d5 # v9.1.4
with:
message: "chore: update camunda-platform public files"