mirror of
https://github.com/bitnami/charts.git
synced 2026-03-29 16:27:11 +08:00
[bitnami/charts] Add ignored files to markdown linter (#15415)
Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
4
.github/workflows/markdown-linter.yml
vendored
4
.github/workflows/markdown-linter.yml
vendored
@@ -13,7 +13,7 @@ jobs:
|
||||
steps:
|
||||
- name: Install mardownlint
|
||||
run: npm install -g markdownlint-cli@0.33.0
|
||||
- name: Checkout bitnami/charts
|
||||
- name: Checkout project
|
||||
uses: actions/checkout@v3
|
||||
- name: Execute markdownlint
|
||||
run: |
|
||||
@@ -23,6 +23,8 @@ jobs:
|
||||
files_changed_data=$(curl -s --header 'authorization: Bearer ${{ secrets.GITHUB_TOKEN }}' -X GET -G "$URL")
|
||||
files_changed="$(echo "$files_changed_data" | jq -r '.[] | .filename')"
|
||||
md_files="$(echo "$files_changed" | grep -o ".*\.md$" | sort | uniq || true)"
|
||||
# Create an empty file, useful when the PR changes ignored files
|
||||
touch ${{runner.temp}}/output
|
||||
exit_code=0
|
||||
markdownlint -o ${{runner.temp}}/output ${md_files[@]} || exit_code=$?
|
||||
while read -r line; do
|
||||
|
||||
2
.markdownlintignore
Normal file
2
.markdownlintignore
Normal file
@@ -0,0 +1,2 @@
|
||||
LICENSE.md
|
||||
.github/PULL_REQUEST_TEMPLATE.md
|
||||
@@ -1,4 +1,6 @@
|
||||
<!-- markdownlint-disable-next-line -->
|
||||
[](https://artifacthub.io/packages/search?repo=bitnami)
|
||||
<!-- markdownlint-disable-next-line -->
|
||||
[](https://github.com/bitnami/charts/actions/workflows/cd-pipeline.yml)
|
||||
|
||||
# The Bitnami Library for Kubernetes
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
# Bitnami Charts Template
|
||||
|
||||
This directory contains a basic scaffolding to serve as the basis for creating a new chart.
|
||||
|
||||
Some of the items that need to be implemented are:
|
||||
|
||||
Reference in New Issue
Block a user