Skip to content

Commit 3e8e61c

Browse files
authored
fix: specify target branch for linting in workflows (#181)
1 parent 97e5333 commit 3e8e61c

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

.github/workflows/linting.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: Linting Charts
22

3-
on:
4-
push
3+
on: push
54

65
jobs:
76
linting:
@@ -18,13 +17,13 @@ jobs:
1817
- name: Run chart-testing (lint-changed)
1918
id: list-changed
2019
run: |
21-
changed=$(ct list-changed)
20+
changed=$(ct list-changed --target-branch master)
2221
if [[ -n "$changed" ]]; then
2322
echo "::set-output name=changed::true"
2423
fi
2524
2625
- name: Run chart-testing (lint)
27-
run: ct lint
26+
run: ct lint --target-branch master
2827

2928
- name: ArtifactHUB Lint
3029
env:
@@ -33,4 +32,3 @@ jobs:
3332
curl -LO https://github.com/artifacthub/hub/releases/download/v${AH_CLI_VERSION}/ah_${AH_CLI_VERSION}_linux_amd64.tar.gz
3433
tar xvzf ah_${AH_CLI_VERSION}_linux_amd64.tar.gz
3534
./ah lint
36-

.github/workflows/test.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ jobs:
1717
- name: Run chart-testing (lint-changed)
1818
id: list-changed
1919
run: |
20-
changed=$(ct list-changed)
20+
changed=$(ct list-changed --target-branch master)
2121
if [[ -n "$changed" ]]; then
2222
echo "::set-output name=changed::true"
2323
fi
2424
2525
- name: Run chart-testing (lint)
26-
run: ct lint
26+
run: ct lint --target-branch master
2727

2828
- name: Create k8s Kind Cluster
2929
uses: helm/kind-action@v1.13.0
@@ -39,4 +39,4 @@ jobs:
3939
helm install cert-manager jetstack/cert-manager --namespace cert-manager --create-namespace --set installCRDs=true --wait
4040
4141
- name: Run chart-testing (install)
42-
run: ct install --helm-extra-set-args "--set=kindtest=true"
42+
run: ct install --target-branch master --helm-extra-set-args "--set=kindtest=true"

0 commit comments

Comments
 (0)