777 on new scripts (+2 squashed commit)
Squashed commit: [9ae7dd0f] add helm-docs to workflow [2206f5ba] fix small typo in workflows (+1 squashed commits) Squashed commits: [29c2ceb4] Documentation-Cleanup (#181) * work on readme generation * document windows setup * add simple pre-commit install script * more docs for git setup * Update pre-commit * pre-commit automatic fixes * Increase all patch versions * Auto Readme and Config doc * Auto app-readme.md generation * increase common and common-test versions accordingly (due to cleanup) * move contribution guidelines to /development in wiki * fix some end-of-line issues (again) * fix line 14 of workflows
This commit is contained in:
committed by
kjeld Schouten-Lebbing
parent
94a6d6f9e1
commit
1d51be0e3d
41
.github/workflows/wiki-create-docs.yaml
vendored
41
.github/workflows/wiki-create-docs.yaml
vendored
@@ -28,24 +28,37 @@ jobs:
|
||||
repository: 'truecharts/wiki'
|
||||
path: 'wiki'
|
||||
token: ${{ secrets.RENOVPUSH }}
|
||||
|
||||
|
||||
- name: install helm-docs
|
||||
run: |
|
||||
brew install norwoodj/tap/helm-docs
|
||||
|
||||
- name: (re)generate docs
|
||||
run: |
|
||||
cd master
|
||||
.tools/gen-helm-docs.sh
|
||||
cd ..
|
||||
|
||||
- name: Clean-Wiki
|
||||
run: |
|
||||
rm -Rf wiki/content
|
||||
mkdir -p wiki/content
|
||||
mkdir -p wiki/content/development
|
||||
cp -f wiki/CNAME wiki/content/CNAME
|
||||
|
||||
|
||||
- name: Create general wiki
|
||||
run: |
|
||||
cd master
|
||||
# for doc in docs/*; do
|
||||
# if [ -d "${doc}" ]; then
|
||||
# docname=$(basename ${doc})
|
||||
# cp -Rf docs/${docname} ../wiki/content/
|
||||
# fi
|
||||
# done
|
||||
for doc in .github/docs/*; do
|
||||
if [ -d "${doc}" ]; then
|
||||
docname=$(basename ${doc})
|
||||
cp -Rf ${doc} ../wiki/content/
|
||||
fi
|
||||
done
|
||||
cp .github/README.md ../wiki/content/index.md || echo "readme copy failed, continuing..."
|
||||
cp .github/CODE_OF_CONDUCT ../wiki/content/code_of_conduct.md || echo "CODE_OF_CONDUCT copy failed, continuing..."
|
||||
cp .github/CONTRIBUTING ../wiki/content/contributing.md || echo "CONTRIBUTING copy failed, continuing..."
|
||||
cp .github/CONTRIBUTING ../wiki/content/development/contributing.md || echo "CONTRIBUTING copy failed, continuing..."
|
||||
ls ../wiki/content/
|
||||
cd ..
|
||||
|
||||
@@ -65,7 +78,7 @@ jobs:
|
||||
ls ../wiki/content/apps/
|
||||
cd ..
|
||||
|
||||
- name: Commit and push updated charts
|
||||
- name: Commit and push updated wiki
|
||||
run: |
|
||||
cd wiki
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
@@ -73,3 +86,13 @@ jobs:
|
||||
git add --all
|
||||
git commit -sm "Publish general wiki updates" || exit 0
|
||||
git push
|
||||
cd ..
|
||||
|
||||
- name: Commit and push updated charts
|
||||
run: |
|
||||
cd master
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
git add --all
|
||||
git commit -sm "Publish docs updates" || exit 0
|
||||
git push
|
||||
|
||||
Reference in New Issue
Block a user