Update charts-release.yaml

This commit is contained in:
Kjeld Schouten-Lebbing 2022-04-01 08:39:13 +02:00 committed by GitHub
parent 001afb2e80
commit 9095116207
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 18 deletions

View File

@ -69,14 +69,6 @@ jobs:
# export -f chart_runner
# CHARTS=(${{ steps.collect-changes.outputs.addedOrModifiedCharts }})
# parallel -j 8 chart_runner '2>&1' ::: ${CHARTS[@]}
- name: Checkout
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
with:
fetch-depth: 1
repository: truecharts/website
token: ${{ secrets.BOT_TOKEN }}
path: website
- name: build catalogs and docs
if: |
@ -87,6 +79,14 @@ jobs:
env:
CR_TOKEN: ${{ secrets.BOT_TOKEN }}
- name: Checkout
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3
with:
fetch-depth: 1
repository: truecharts/pub
token: ${{ secrets.BOT_TOKEN }}
path: pub
- name: Copy docs to website
if: |
steps.collect-changes.outputs.changesDetected == 'true'
@ -95,14 +95,14 @@ jobs:
IFS='/' read -r -a chart_parts <<< "${1}"
if [ -f "charts/${chart_parts[0]}"/"${chart_parts[1]}/Chart.yaml" ]; then
mkdir -p docs/apps/${train}/${chartname} || echo "app path already exists, continuing..."
yes | cp -rf ${chart}/README.md docs/apps/${train}/${chartname}/index.md 2>/dev/null || :
yes | cp -rf ${chart}/CHANGELOG.md docs/apps/${train}/${chartname}/CHANGELOG.md 2>/dev/null || :
yes | cp -rf ${chart}/security.md docs/apps/${train}/${chartname}/security.md 2>/dev/null || :
yes | cp -rf ${chart}/CONFIG.md docs/apps/${train}/${chartname}/CONFIG.md 2>/dev/null || :
yes | cp -rf ${chart}/helm-values.md docs/apps/${train}/${chartname}/helm-values.md 2>/dev/null || :
rm docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
yes | cp -rf ${chart}/LICENSE docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
sed -i '1s/^/# License<br>\n\n/' docs/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
yes | cp -rf ${chart}/README.md pub/website/apps/${train}/${chartname}/index.md 2>/dev/null || :
yes | cp -rf ${chart}/CHANGELOG.md pub/website/apps/${train}/${chartname}/CHANGELOG.md 2>/dev/null || :
yes | cp -rf ${chart}/security.md pub/website/apps/${train}/${chartname}/security.md 2>/dev/null || :
yes | cp -rf ${chart}/CONFIG.md pub/website/apps/${train}/${chartname}/CONFIG.md 2>/dev/null || :
yes | cp -rf ${chart}/helm-values.md pub/website/apps/${train}/${chartname}/helm-values.md 2>/dev/null || :
rm pub/website/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
yes | cp -rf ${chart}/LICENSE pub/website/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
sed -i '1s/^/# License<br>\n\n/' pub/website/apps/${train}/${chartname}/LICENSE.md 2>/dev/null || :
fi
}
export -f docs_copy
@ -114,7 +114,7 @@ jobs:
if: |
steps.collect-changes.outputs.changesDetected == 'true'
run: |
cd website
cd pub
git config user.name "TrueCharts-Bot"
git config user.email "bot@truecharts.org"
git add --all
@ -122,7 +122,7 @@ jobs:
## TODO: actually push the content
# git push
cd -
rm -rf website
rm -rf pub
- name: Create commit
id: create-commit