chore(deps): update githubactions (minor) #35
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: Lint Charts | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'charts/**' | |
- '.github/workflows/lint.yaml' | |
permissions: | |
contents: write | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: aquaproj/[email protected] | |
with: | |
aqua_version: v1.34.0 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
cache: poetry | |
- name: Install dependencies | |
run: | | |
poetry install | |
echo "PATH=$PATH:$(poetry env info -p)/bin" >> $GITHUB_ENV | |
- name: Get etc of chart-testing | |
run: | | |
ct_version=$(ct version | yq '.Version') | |
mkdir ~/.ct | |
curl -sSL -o ~/.ct/chart_schema.yaml https://raw.githubusercontent.com/helm/chart-testing/${ct_version}/etc/chart_schema.yaml | |
curl -sSL -o ~/.ct/lintconf.yaml https://raw.githubusercontent.com/helm/chart-testing/${ct_version}/etc/lintconf.yaml | |
- name: Run chart-testing (lint) | |
run: | | |
ct lint --target-branch ${{ github.event.repository.default_branch }} | |
- name: Docs Generate | |
run: | |
helm-docs | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: 'docs: update README.md' | |
file_pattern: '*.md' | |
disable_globbing: true |