Skip to content

Commit

Permalink
fixed build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pk910 committed May 6, 2024
1 parent 49ac9c7 commit 343bd28
Showing 1 changed file with 0 additions and 38 deletions.
38 changes: 0 additions & 38 deletions .github/workflows/build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,44 +34,6 @@ jobs:
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}

update_project_wiki:
name: Generate project documentation
needs: [check_source]
runs-on: ubuntu-latest
steps:
- name: Checkout base code
uses: actions/checkout@v2
with:
path: code
- name: Checkout wiki code
uses: actions/checkout@v2
with:
repository: ${{github.repository}}.wiki
path: wiki
- name: Generate wiki from docs
run: |
touch ./wiki.md
for filename in code/docs/*.md; do
while IFS= read -r line; do
if [[ "$line" =~ ^"#!!" ]]; then
bash -c "cd code && ${line:3}" >> ./wiki.md
else
echo "$line" >> ./wiki.md
fi
done <<< $(cat $filename)
echo "" >> ./wiki.md
done
cp ./wiki.md ./wiki/Home.md
- name: Push to wiki
run: |
cd wiki
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add .
git diff-index --quiet HEAD || git commit -m "Add changes" && git push

create_snapshot_release:
name: Create snapshot release
Expand Down

0 comments on commit 343bd28

Please sign in to comment.