File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 23
23
lint-charts :
24
24
name : Lint Charts
25
25
runs-on : ubuntu-latest
26
+ permissions :
27
+ contents : read
26
28
steps :
27
29
- name : Code checkout
28
30
uses : actions/checkout@v4
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ name: "Test charts"
3
3
on :
4
4
push :
5
5
paths-ignore :
6
- - ' packages /**'
7
- - ' index.yaml '
6
+ - ' charts/victoria-metrics-common /**'
7
+ - ' charts/victoria-metrics-operator-crds/** '
8
8
- ' **.md'
9
9
branches :
10
10
- master
11
11
pull_request :
12
12
paths-ignore :
13
- - ' packages /**'
14
- - ' index.yaml '
13
+ - ' charts/victoria-metrics-common /**'
14
+ - ' charts/victoria-metrics-operator-crds/** '
15
15
- ' **.md'
16
16
branches :
17
17
- master
23
23
get-changed-charts :
24
24
name : Get changed charts
25
25
runs-on : ubuntu-24.04
26
+ permissions :
27
+ contents : read
26
28
outputs :
27
29
charts : ${{ steps.charts-diff.outputs.charts }}
28
30
steps :
@@ -43,15 +45,17 @@ jobs:
43
45
# this bash pipeline extracts unique chart names from the list
44
46
- name : Build charts diff
45
47
id : charts-diff
46
- run : |
47
- charts=$(echo "${{ steps.changed-charts.outputs.all_modified_files }}" | sed 's/ /\n/g' | grep -vE 'common|crds' | awk -F/ '{print $2}' | sort | uniq | jq -ncR '[inputs]')
48
+ run : jq |
49
+ charts=$(echo "${{ steps.changed-charts.outputs.all_modified_files }}" | sed 's/ /\n/g' | awk -F/ '{print $2}' | sort | uniq | jq -ncR '[inputs]')
48
50
echo "charts=$charts" >> $GITHUB_OUTPUT
49
51
50
52
install-chart :
51
53
name : Install chart
52
54
runs-on : ubuntu-24.04
53
55
needs : get-changed-charts
54
56
if : ${{ needs.get-changed-charts.outputs.charts != '[""]' }}
57
+ permissions :
58
+ contents : read
55
59
strategy :
56
60
matrix :
57
61
chart : ${{ fromJSON(needs.get-changed-charts.outputs.charts) }}
You can’t perform that action at this time.
0 commit comments