mirror of
https://github.com/bitnami/charts.git
synced 2026-03-05 14:57:31 +08:00
55 lines
1.7 KiB
YAML
55 lines
1.7 KiB
YAML
name: Check README metadata
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- 'bitnami/*/values.yaml'
|
|
|
|
jobs:
|
|
check-readme-metadata:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout bitnami-labs/readme-generator-for-helm
|
|
uses: actions/checkout@v2
|
|
with:
|
|
repository: 'bitnami-labs/readme-generator-for-helm'
|
|
ref: '1af12881436b1f58f0643d733fd5196b4a11caa8'
|
|
path: readme-generator-for-helm
|
|
|
|
- name: Cache node modules
|
|
uses: actions/cache@v2
|
|
env:
|
|
cache-name: cache-node-modules
|
|
with:
|
|
# npm cache files are stored in `~/.npm` on Linux/macOS
|
|
path: ~/.npm
|
|
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('readme-generator-for-helm/package-lock.json') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
|
|
- name: Install readme-generator-for-helm dependencies
|
|
run: cd readme-generator-for-helm && npm install
|
|
|
|
- name: Checkout bitnami/charts
|
|
uses: actions/checkout@v2
|
|
with:
|
|
path: charts
|
|
|
|
- name: Get list of files with changes in Pull Request
|
|
id: pr-file-changes
|
|
uses: trilom/file-changes-action@v1.2.4
|
|
with:
|
|
fileOutput: ' '
|
|
|
|
- name: Prepare readme-generator-for-helm inputs
|
|
run: |
|
|
cat $HOME/files.txt | tr " " "\n" | grep \/values\\.yaml > raw-inputs
|
|
cat raw-inputs | sed 's/values.yaml/README.md/' >> raw-inputs
|
|
cat raw-inputs | sed 's/bitnami/charts\/bitnami/' > prepared-inputs
|
|
|
|
- name: Execute readme-generator-for-helm
|
|
run: readme-generator-for-helm/bin/index.js --values $(cat prepared-inputs | grep values) --schema /tmp/chart-schema.json
|