Merge pull request #33 from spiffe/version-increment-check

This commit is contained in:
Marco Franssen
2023-02-24 10:55:17 +01:00
committed by GitHub
2 changed files with 6 additions and 5 deletions
+5 -4
View File
@@ -3,6 +3,7 @@ name: Helm Chart CI
on: on:
workflow_dispatch: workflow_dispatch:
pull_request: pull_request:
types: [synchronize, opened, reopened, edited]
paths: paths:
- 'charts/**' - 'charts/**'
- '.github/workflows/helm-chart-ci.yaml' - '.github/workflows/helm-chart-ci.yaml'
@@ -57,15 +58,15 @@ jobs:
- name: Run chart-testing (list-changed) - name: Run chart-testing (list-changed)
id: list-changed id: list-changed
run: | run: |
changed=$(ct list-changed --target-branch main) changed=$(ct list-changed --target-branch ${{ github.base_ref }})
if [[ -n "$changed" ]]; then if [[ -n "$changed" ]]; then
echo "changed=true" >> $GITHUB_OUTPUT echo "changed=true" >> $GITHUB_OUTPUT
fi fi
- name: Run chart-testing (lint) - name: Run chart-testing (lint)
run: | run: |
ct lint --debug \ ct lint --debug ${{ github.base_ref != 'release' && '--check-version-increment=false' || '' }} \
--target-branch main --target-branch ${{ github.base_ref }}
outputs: outputs:
changed: ${{ steps.list-changed.outputs.changed }} changed: ${{ steps.list-changed.outputs.changed }}
@@ -150,7 +151,7 @@ jobs:
- name: Run chart-testing (install) - name: Run chart-testing (install)
run: | run: |
ct install --debug \ ct install --debug \
--target-branch main \ --target-branch ${{ github.base_ref }} \
--exclude-deprecated \ --exclude-deprecated \
${{ (matrix.values != 'default' && '--helm-extra-set-args "--values=.github/tests/$VALUES/values.yaml"') || '' }} ${{ (matrix.values != 'default' && '--helm-extra-set-args "--values=.github/tests/$VALUES/values.yaml"') || '' }}
env: env:
+1 -1
View File
@@ -3,7 +3,7 @@ name: Release Helm Charts
on: on:
push: push:
branches: branches:
- main - release
paths: paths:
- '.github/workflows/helm-release.yml' - '.github/workflows/helm-release.yml'
- 'charts/**' - 'charts/**'