feat: Release Bot branch Changed Migrator Job image to migrate/migrate. #766
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: | |
- 'scripts/devtron-reference-helm-charts/**' | |
- 'charts/devtron/**' | |
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: 'scripts/devtron-reference-helm-charts/**/templates/**' | |
- added|modified: 'charts/devtron/**/templates/**' | |
files: | |
- added|modified: 'charts/devtron/*' | |
ref_chart: | |
- added|modified: 'scripts/devtron-reference-helm-charts/*/*' | |
- run: echo ${{ steps.filter.outputs.charts }} | |
- run: echo ${{ steps.filter.outputs.files }} | |
- uses: actions/setup-python@v2 | |
- uses: jannekem/run-python-script-action@v1 | |
id: python | |
with: | |
script: | | |
string='${{ steps.filter.outputs.charts_files }}' | |
devtron_chart='${{ steps.filter.outputs.files_files }}' | |
ref_chart='${{ steps.filter.outputs.ref_chart_files }}' | |
print(string) | |
print(devtron_chart) | |
print(ref_chart) | |
split_ref_chart=ref_chart.split("/") | |
print(split_ref_chart) | |
if (string) : | |
location=string.split("templates",1)[0] | |
print(location) | |
set_output("chart_path",location) | |
elif (devtron_chart): | |
set_output("chart_path","charts/devtron/") | |
else : | |
split_ref_chart=split_ref_chart[:-1] | |
print("/".join(split_ref_chart)) | |
split_ref_chart="/".join(split_ref_chart) | |
split_ref_chart+="/" | |
set_output("chart_path",split_ref_chart) | |
- run: echo ${{ steps.python.outputs.chart_path }} | |
- name: Print errors | |
if: steps.script.outputs.error == 'true' | |
run: | | |
printenv "SCRIPT_STDOUT" | |
printenv "SCRIPT_STDERR" | |
- name: helm build | |
run: cd ./${{ steps.python.outputs.chart_path }} && helm dependency build | |
- name: helm-check | |
uses: igabaydulin/helm-check-action@0.1.4 | |
env: | |
CHART_LOCATION: ./${{ steps.python.outputs.chart_path }} | |
CHART_VALUES: ./${{ steps.python.outputs.chart_path }}values.yaml |