-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
67 additions
and
55 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: Generate Helm Docs | ||
on: | ||
push: | ||
paths: | ||
- '!*.md' | ||
- 'deploy/charts/version-checker/**' | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: false | ||
|
||
jobs: | ||
docs: | ||
name: Generate Helm Docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
- name: Check for values.yaml changes | ||
uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
values: | ||
- 'deploy/charts/version-checker/values.yaml' | ||
- 'deploy/charts/version-checker/Chart.yaml' | ||
- name: Install Helm Docs | ||
if: steps.filter.outputs.values == 'true' | ||
uses: envoy/[email protected] | ||
with: | ||
version: 1.11.0 | ||
- name: Update Helm Docs | ||
if: steps.filter.outputs.values == 'true' | ||
run: | | ||
set -ex | ||
cd deploy/charts/version-checker | ||
helm-docs | ||
- name: Check for README.md changes | ||
uses: dorny/paths-filter@v2 | ||
id: filter-readme | ||
with: | ||
base: HEAD | ||
filters: | | ||
readme: | ||
- 'deploy/charts/version-checker/README.md' | ||
- name: Commit Helm Docs | ||
if: steps.filter-readme.outputs.readme == 'true' | ||
run: | | ||
set -ex | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add deploy/charts/version-checker | ||
git commit -m "[HELM] Update helm docs" | ||
- name: Push Changes | ||
if: steps.filter-readme.outputs.readme == 'true' | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,61 +26,6 @@ jobs: | |
|
||
- run: helm lint deploy/charts/version-checker | ||
|
||
docs: | ||
name: Generate Helm Docs | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
- name: Check for values.yaml changes | ||
uses: dorny/paths-filter@v2 | ||
id: filter | ||
with: | ||
filters: | | ||
values: | ||
- 'deploy/charts/version-checker/values.yaml' | ||
- 'deploy/charts/version-checker/Chart.yaml' | ||
- name: Install Helm Docs | ||
if: steps.filter.outputs.values == 'true' | ||
uses: envoy/[email protected] | ||
with: | ||
version: 1.11.0 | ||
- name: Update Helm Docs | ||
if: steps.filter.outputs.values == 'true' | ||
run: | | ||
set -ex | ||
cd deploy/charts/version-checker | ||
helm-docs | ||
- name: Check for README.md changes | ||
uses: dorny/paths-filter@v2 | ||
id: filter-readme | ||
with: | ||
base: HEAD | ||
filters: | | ||
readme: | ||
- 'deploy/charts/version-checker/README.md' | ||
- name: Commit Helm Docs | ||
if: steps.filter-readme.outputs.readme == 'true' | ||
run: | | ||
set -ex | ||
git config --local user.email "github-actions[bot]@users.noreply.github.com" | ||
git config --local user.name "github-actions[bot]" | ||
git add deploy/charts/version-checker | ||
git commit -m "[HELM] Update helm docs" | ||
- name: Push Changes | ||
if: steps.filter-readme.outputs.readme == 'true' | ||
uses: ad-m/[email protected] | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: ${{ github.head_ref }} | ||
repository: ${{ github.event.pull_request.head.repo.full_name }} | ||
|
||
|
||
test: | ||
name: Run unit tests for Helm Chart | ||
runs-on: ubuntu-latest | ||
|