Add option for team label #210
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: PR Check | |
on: | |
pull_request: | |
jobs: | |
list: | |
name: list changes | |
runs-on: ubuntu-latest | |
outputs: | |
folders: ${{ steps.changed-files.outputs.all_modified_files }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v35 | |
with: | |
files: 'charts/**' | |
dir_names: true | |
dir_names_max_depth: "2" | |
json: true | |
json_raw_format: true | |
- name: Return output | |
env: | |
OUTPUT: ${{ steps.changed-files.outputs.all_modified_files }} | |
run: | | |
echo $OUTPUT | |
check: | |
name: ${{ matrix.path }} | |
runs-on: ubuntu-latest | |
needs: [list] | |
if: ${{ needs.list.outputs.folders != '[]' && needs.list.outputs.folders != '' }} | |
strategy: | |
fail-fast: false | |
matrix: | |
path: ${{ fromJson(needs.list.outputs.folders) }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install Helm | |
uses: azure/setup-helm@v3 | |
with: | |
version: v3.11.2 | |
- name: Check chart | |
working-directory: ${{ matrix.path }} | |
run: > | |
helm dependency update && | |
helm lint |