|
18 | 18 | with:
|
19 | 19 | fetch-depth: 0
|
20 | 20 |
|
| 21 | + - name: Install Helm |
| 22 | + uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 |
| 23 | + with: |
| 24 | + token: ${{ github.token }} |
| 25 | + version: latest |
| 26 | + |
| 27 | + - name: Run Helm Schema check |
| 28 | + working-directory: charts/external-dns |
| 29 | + run: | |
| 30 | + set -euo pipefail |
| 31 | + |
| 32 | + helm plugin install https://github.com/losisin/helm-values-schema-json.git |
| 33 | + helm schema |
| 34 | + if [[ -n "$(git status --porcelain --untracked-files=no)" ]] |
| 35 | + then |
| 36 | + echo "Schema not up to date. Please run helm schema and commit changes!" >&2 |
| 37 | + exit 1 |
| 38 | + fi |
| 39 | +
|
21 | 40 | - name: Install Helm Docs
|
22 | 41 | uses: action-stars/install-tool-from-github-release@ece2623611b240002e0dd73a0d685505733122f6 # v0.2.4
|
23 | 42 | with:
|
@@ -52,31 +71,25 @@ jobs:
|
52 | 71 | - name: Run Artifact Hub lint
|
53 | 72 | run: ah lint --kind helm || exit 1
|
54 | 73 |
|
55 |
| - - name: Install Helm |
56 |
| - uses: azure/setup-helm@fe7b79cd5ee1e45176fcad797de68ecaf3ca4814 # v4.2.0 |
57 |
| - with: |
58 |
| - token: ${{ github.token }} |
59 |
| - version: latest |
60 |
| - |
61 | 74 | - name: Install Python
|
62 |
| - uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0 |
| 75 | + uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0 |
63 | 76 | with:
|
64 | 77 | token: ${{ github.token }}
|
65 | 78 | python-version: "3.x"
|
66 | 79 |
|
67 | 80 | - name: Set-up chart-testing
|
68 |
| - uses: helm/chart-testing-action@e6669bcd63d7cb57cb4380c33043eebe5d111992 # v2.6.1 |
| 81 | + uses: helm/chart-testing-action@0d28d3144d3a25ea2cc349d6e59901c4ff469b3b # v2.7.0 |
69 | 82 |
|
70 | 83 | - name: Check for changes
|
71 | 84 | id: changes
|
72 | 85 | run: |
|
73 |
| - changed=$(ct list-changed) |
| 86 | + changed=$(ct list-changed --target-branch=master) |
74 | 87 | if [[ -n "$changed" ]]; then
|
75 | 88 | echo "changed=true" >> "${GITHUB_OUTPUT}"
|
76 | 89 | fi
|
77 | 90 |
|
78 | 91 | - name: Run chart-testing lint
|
79 |
| - run: ct lint --check-version-increment=false |
| 92 | + run: ct lint --target-branch=master --check-version-increment=false |
80 | 93 |
|
81 | 94 | - name: Create Kind cluster
|
82 | 95 | if: steps.changes.outputs.changed == 'true'
|
|
86 | 99 |
|
87 | 100 | - name: Run chart-testing install
|
88 | 101 | if: steps.changes.outputs.changed == 'true'
|
89 |
| - run: ct install |
| 102 | + run: ct install --target-branch=master |
0 commit comments