From bc4323acc3be775c2926b78cffb3a2944b9cbc88 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Apr 2026 23:50:14 +0000 Subject: [PATCH 1/2] chore: add GitHub Actions workflow to sync wiki/ folder to GitHub wiki Agent-Logs-Url: https://github.com/Foscat/Interactive-Surface-CSS/sessions/0105a7b4-c6e8-44bb-b424-195a22627140 Co-authored-by: Foscat <40616718+Foscat@users.noreply.github.com> --- .github/workflows/wiki-sync.yml | 45 +++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/wiki-sync.yml diff --git a/.github/workflows/wiki-sync.yml b/.github/workflows/wiki-sync.yml new file mode 100644 index 0000000..32481bd --- /dev/null +++ b/.github/workflows/wiki-sync.yml @@ -0,0 +1,45 @@ +name: Sync wiki + +on: + push: + branches: + - main + paths: + - wiki/** + workflow_dispatch: + +jobs: + sync: + runs-on: ubuntu-latest + permissions: + contents: write + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Push wiki folder to GitHub Wiki + run: | + git config --global user.name "github-actions[bot]" + git config --global user.email "github-actions[bot]@users.noreply.github.com" + + WIKI_REPO="https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git" + + git clone "$WIKI_REPO" wiki-repo + + # Copy wiki files, excluding the setup notes file + rsync -av --delete \ + --exclude="WIKI_SETUP.md" \ + wiki/ wiki-repo/ + + cd wiki-repo + + git add -A + + if git diff --cached --quiet; then + echo "No wiki changes to commit." + exit 0 + fi + + git commit -m "Sync wiki from main repo @ ${{ github.sha }}" + git push From d556a44c24cb50345acd0c6fd13c81361f152d99 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 9 Apr 2026 23:57:16 +0000 Subject: [PATCH 2/2] fix: address review comments on wiki-sync workflow Agent-Logs-Url: https://github.com/Foscat/Interactive-Surface-CSS/sessions/290f6e19-a1ec-4fb1-a487-4edf806675aa Co-authored-by: Foscat <40616718+Foscat@users.noreply.github.com> --- .github/workflows/wiki-sync.yml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/wiki-sync.yml b/.github/workflows/wiki-sync.yml index 32481bd..296701a 100644 --- a/.github/workflows/wiki-sync.yml +++ b/.github/workflows/wiki-sync.yml @@ -18,17 +18,21 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 + - name: Checkout wiki repository + uses: actions/checkout@v4 + with: + repository: ${{ github.repository }}.wiki + token: ${{ github.token }} + path: wiki-repo + - name: Push wiki folder to GitHub Wiki run: | - git config --global user.name "github-actions[bot]" - git config --global user.email "github-actions[bot]@users.noreply.github.com" - - WIKI_REPO="https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}.wiki.git" - - git clone "$WIKI_REPO" wiki-repo + git -C wiki-repo config user.name "github-actions[bot]" + git -C wiki-repo config user.email "github-actions[bot]@users.noreply.github.com" - # Copy wiki files, excluding the setup notes file + # Copy wiki files while preserving the cloned repository metadata rsync -av --delete \ + --exclude=".git/" \ --exclude="WIKI_SETUP.md" \ wiki/ wiki-repo/