diff --git a/.github/workflows/wiki-repo-sync.yaml b/.github/workflows/wiki-repo-sync.yaml index 50c77dce3..01d4da932 100644 --- a/.github/workflows/wiki-repo-sync.yaml +++ b/.github/workflows/wiki-repo-sync.yaml @@ -9,7 +9,8 @@ on: gollum: env: - doc_dir: "doc" + doc_dir: "docs" + include-pattern: '*.md' jobs: wiki-to-repo-doc : @@ -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" @@ -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"