Skip to content

Commit

Permalink
Adapt Wiki-repo-sync workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
EduardGomezEscandell committed Oct 11, 2023
1 parent 7e92146 commit c36cbab
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/wiki-repo-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ on:
gollum:

env:
doc_dir: "doc"
doc_dir: "docs"
include-pattern: '*.md'

jobs:
wiki-to-repo-doc :
Expand All @@ -33,7 +34,7 @@ jobs:
DIFF=$(diff -qr --exclude=.git repo/"${{ env.doc_dir }}/" wiki/ || true)
[ "$DIFF" == "" ] && exit 0
rsync -avzr --delete --exclude='.git/' wiki/ repo/"${{ env.doc_dir }}/"
rsync -avzr --delete --exclude=* --include="${{ env.include-pattern }}" wiki/ repo/"${{ env.doc_dir }}/"
cd repo/ || exit 1
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down Expand Up @@ -62,7 +63,7 @@ jobs:
DIFF=$(diff -qr --exclude=.git repo/"${{ env.doc_dir }}/" wiki/ || true)
[ "$DIFF" == "" ] && exit 0
rsync -avzr --delete --exclude='.git/' repo/"${{ env.doc_dir }}/" wiki/
rsync -avzr --delete --exclude=* --include="${{ env.include-pattern }}" repo/"${{ env.doc_dir }}/" wiki/
cd wiki/
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
Expand Down

0 comments on commit c36cbab

Please sign in to comment.