@@ -2,7 +2,8 @@ name: Check Config Changes
2
2
3
3
on : # yamllint disable-line rule:truthy
4
4
pull_request_target :
5
-
5
+ # Using `pull_request_target` event type to allow the workflow to comment on the PR.
6
+ # Refer: https://github.com/thollander/actions-comment-pull-request?tab=readme-ov-file#permissions
6
7
permissions :
7
8
pull-requests : write
8
9
contents : write
16
17
compose_changes : ${{ steps.filter.outputs.compose }}
17
18
hack_changes : ${{ steps.filter.outputs.hack }}
18
19
manifest_changes : ${{ steps.filter.outputs.manifest }}
20
+ helm_changes : ${{ steps.filter.outputs.helm }}
19
21
steps :
20
22
- name : Checkout source
21
23
uses : actions/checkout@v4
@@ -35,17 +37,20 @@ jobs:
35
37
- 'hack/config.yaml'
36
38
manifest:
37
39
- 'manifests/k8s/configmap.yaml'
40
+ helm:
41
+ - 'manifests/helm/kepler/values.yaml'
38
42
39
43
comment-on-pr :
40
44
needs : check-changes
41
45
if : >-
42
- ${{ needs.check-changes.outputs.changes == 'true' }} &&
43
- (
44
- ${{ needs.check-changes.outputs.doc_changes != 'true' }} ||
45
- ${{ needs.check-changes.outputs.compose_changes != 'true' }} ||
46
- ${{ needs.check-changes.outputs.hack_changes != 'true' }} ||
47
- ${{ needs.check-changes.outputs.manifest_changes != 'true' }}
48
- )
46
+ needs.check-changes.outputs.changes == 'true' &&
47
+ (
48
+ needs.check-changes.outputs.doc_changes != 'true' ||
49
+ needs.check-changes.outputs.compose_changes != 'true' ||
50
+ needs.check-changes.outputs.hack_changes != 'true' ||
51
+ needs.check-changes.outputs.manifest_changes != 'true' ||
52
+ needs.check-changes.outputs.helm_changes != 'true'
53
+ )
49
54
runs-on : ubuntu-latest
50
55
steps :
51
56
- name : Generate comment message
67
72
if [[ "${{ needs.check-changes.outputs.manifest_changes }}" != "true" ]]; then
68
73
echo "- manifests/k8s/configmap.yaml"
69
74
fi
75
+ if [[ "${{ needs.check-changes.outputs.helm_changes }}" != "true" ]]; then
76
+ echo "- manifests/helm/kepler/values.yaml"
77
+ fi
70
78
echo "EOF"
71
79
} >> $GITHUB_OUTPUT
72
80
- name : Comment on PR
0 commit comments