[bitnami/charts] Add ignored files to markdown linter (#15415)

Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
Fran Mulero
2023-03-14 12:15:14 +01:00
committed by GitHub
parent fb6ebdc47f
commit dffbac1ed9
4 changed files with 9 additions and 1 deletions

View File

@@ -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
View File

@@ -0,0 +1,2 @@
LICENSE.md
.github/PULL_REQUEST_TEMPLATE.md

View File

@@ -1,4 +1,6 @@
<!-- markdownlint-disable-next-line -->
[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/bitnami)](https://artifacthub.io/packages/search?repo=bitnami)
<!-- markdownlint-disable-next-line -->
[![CD Pipeline](https://github.com/bitnami/charts/actions/workflows/cd-pipeline.yml/badge.svg)](https://github.com/bitnami/charts/actions/workflows/cd-pipeline.yml)
# The Bitnami Library for Kubernetes

View File

@@ -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: