From d800cc143240054fc5a7191b695d64e50d64457e Mon Sep 17 00:00:00 2001 From: Peter Motzko Date: Tue, 15 Aug 2023 10:46:06 +0200 Subject: [PATCH] feat(ci): enable manual trigger --- .github/workflows/chart-lint.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/chart-lint.yml b/.github/workflows/chart-lint.yml index c898ba393..471bdce2c 100644 --- a/.github/workflows/chart-lint.yml +++ b/.github/workflows/chart-lint.yml @@ -21,9 +21,16 @@ name: Lint and Test Charts # Run chart linting and tests on each pull request on: - pull_request: - paths: - - 'charts/**' + workflow_dispatch: + inputs: + force: + default: false + type: boolean + description: Force to run the pipeline, even without real changes + required: false + pull_request: + paths: + - 'charts/**' jobs: chart-lint: @@ -78,10 +85,10 @@ jobs: # Preparing a kind cluster to install and test charts on - name: Create kind cluster uses: helm/kind-action@v1.7.0 - if: steps.list-changed.outputs.changed == 'true' + if: steps.list-changed.outputs.changed == 'true' || ${{ inputs.force }} # install the chart to the kind cluster and run helm test # define charts to test with the --charts parameter - name: Run chart-testing (install) run: ct install --charts charts/managed-identity-wallet --config charts/chart-testing-config.yaml - if: steps.list-changed.outputs.changed == 'true' + if: steps.list-changed.outputs.changed == 'true' || ${{ inputs.force }}