feat: added support for enable and disable postgres and argocd backup #101
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Helm Chart Linting | |
on: | |
pull_request: | |
paths: | |
- 'charts/**' | |
jobs: | |
helm-lint_and_helm-template: | |
runs-on: ubuntu-latest | |
outputs: | |
charts: ${{ steps.filter.outputs.charts }} | |
values: ${{ steps.values.outputs.values }} | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: dorny/paths-filter@v2 | |
id: filter | |
with: | |
list-files: shell | |
filters: | | |
charts: | |
- added|modified: 'charts/**/templates/**' | |
- run: echo ${{ steps.filter.outputs.charts }} | |
- uses: actions/setup-python@v2 | |
- uses: jannekem/run-python-script-action@v1 | |
id: python | |
with: | |
script: | | |
string='${{ steps.filter.outputs.charts_files }}' | |
location=string.split("templates",1)[0] | |
print(location) | |
set_output("chart_path",location) | |
- run: echo ${{ steps.python.outputs.chart_path }} | |
- name: Print errors | |
if: steps.script.outputs.error == 'true' | |
run: | | |
printenv "SCRIPT_STDOUT" | |
printenv "SCRIPT_STDERR" | |
- name: Adding dependency | |
run: cd ./${{ steps.python.outputs.chart_path }} && helm dependency build | |
- name: helm-check | |
uses: igabaydulin/[email protected] | |
env: | |
CHART_LOCATION: ./${{ steps.python.outputs.chart_path }} | |
CHART_VALUES: ./${{ steps.python.outputs.chart_path }}values.yaml |