some tweaking
This commit is contained in:
@@ -4,7 +4,6 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- master
|
- master
|
||||||
- charts
|
|
||||||
tags-ignore:
|
tags-ignore:
|
||||||
- '**'
|
- '**'
|
||||||
|
|
||||||
@@ -12,17 +11,12 @@ jobs:
|
|||||||
publish-app-docs:
|
publish-app-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout-Charts
|
- name: Checkout-Master
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
ref: 'master'
|
|
||||||
path: 'master'
|
path: 'master'
|
||||||
- name: Checkout-Charts
|
token: ${{ secrets.RENOVPUSH }}
|
||||||
uses: actions/checkout@v2
|
- name: Checkout-Wiki
|
||||||
with:
|
|
||||||
ref: 'charts'
|
|
||||||
path: 'charts'
|
|
||||||
- name: Checkout-Charts
|
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
repository: 'truecharts/wiki'
|
repository: 'truecharts/wiki'
|
||||||
@@ -64,16 +58,19 @@ jobs:
|
|||||||
|
|
||||||
- name: Create apps wiki
|
- name: Create apps wiki
|
||||||
run: |
|
run: |
|
||||||
cd charts
|
cd master
|
||||||
for chart in charts/*; do
|
for chart in charts/*; do
|
||||||
if [ -d "${chart}" ]; then
|
if [ -d "${chart}" ]; then
|
||||||
chartname=$(basename ${chart})
|
maxfolderversion=$(ls -l ${chart} | grep ^d | awk '{print $9}' | tail -n 1)
|
||||||
mkdir -p ../wiki/content/apps/${chartname} || echo "wiki path already exists, continuing..."
|
chartname=$(basename ${chart})
|
||||||
if [ -d "${chart}/docs" ]; then
|
echo "Processing: ${chart} - folder: ${maxfolderversion}"
|
||||||
cp -f ${chart}/docs/* ../wiki/content/apps/${chartname}/
|
|
||||||
fi
|
mkdir -p ../wiki/content/apps/${chartname} || echo "wiki path already exists, continuing..."
|
||||||
cp ${chart}/README.md ../wiki/content/apps/${chartname}/index.md || echo "readme copy failed, continuing..."
|
if [ -d "${chart}/${maxfolderversion}/docs" ]; then
|
||||||
fi
|
cp -f ${chart}/${maxfolderversion}/docs/* ../wiki/content/apps/${chartname}/
|
||||||
|
fi
|
||||||
|
cp ${chart}/${maxfolderversion}/README.md ../wiki/content/apps/${chartname}/index.md || echo "readme copy failed, continuing..."
|
||||||
|
fi
|
||||||
done
|
done
|
||||||
ls ../wiki/content/apps/
|
ls ../wiki/content/apps/
|
||||||
cd ..
|
cd ..
|
||||||
|
|||||||
Reference in New Issue
Block a user