From 36cc364bdfb0e4ea1bd1a25b0af25ea28aa1adf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Tue, 9 Dec 2025 02:12:08 +0200 Subject: [PATCH 1/5] Add CI automation for automatic Beman docs import --- .github/workflows/sync-docs.yml | 56 +++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 .github/workflows/sync-docs.yml diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml new file mode 100644 index 0000000..818bf50 --- /dev/null +++ b/.github/workflows/sync-docs.yml @@ -0,0 +1,56 @@ +name: Auto-sync Beman Docs + +on: + push: + branches: + - main + pull_request: + workflow_call: + workflow_dispatch: + schedule: + - cron: '0 6 * * MON' # 09:00 AM EEST (neatudarius' timezone) + +permissions: + contents: write + pull-requests: write + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout website repo + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Checkout beman repo + uses: actions/checkout@v4 + with: + repository: bemanproject/beman + path: beman + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.x' + + - name: Run sync-docs.py + run: | + python3 scripts/sync-docs.py beman + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + commit-message: "Auto-sync documentation from latest content of bemanproject/beman" + branch: auto/sync-docs + title: "Weekly docs sync" + body: | + Automated sync of documentation and images from latest content of bemanproject/beman. + Triggered by weekly schedule at 09:00 EEST. + labels: sync, automation + author: "github-actions[bot] " + assignees: | + neatudarius + RaduNichita + mguludag From 0ecf272b725e57bd9820e4e2d2dba49021e17be9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Tue, 9 Dec 2025 02:16:45 +0200 Subject: [PATCH 2/5] Tweaks --- .github/workflows/sync-docs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 818bf50..7b4c3c6 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -8,7 +8,8 @@ on: workflow_call: workflow_dispatch: schedule: - - cron: '0 6 * * MON' # 09:00 AM EEST (neatudarius' timezone) + # 09:00 EEST/EET ≈ 06:00 UTC + - cron: '0 6 * * MON' permissions: contents: write @@ -47,8 +48,10 @@ jobs: title: "Weekly docs sync" body: | Automated sync of documentation and images from latest content of bemanproject/beman. - Triggered by weekly schedule at 09:00 EEST. - labels: sync, automation + Triggered by the weekly schedule. + labels: | + sync + automation author: "github-actions[bot] " assignees: | neatudarius From f1fae4062111e99cb3a273dc03f52c9a10469b41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Tue, 9 Dec 2025 02:18:32 +0200 Subject: [PATCH 3/5] Tweaks --- .github/workflows/sync-docs.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 7b4c3c6..3a5c1ba 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -8,8 +8,7 @@ on: workflow_call: workflow_dispatch: schedule: - # 09:00 EEST/EET ≈ 06:00 UTC - - cron: '0 6 * * MON' + - cron: '0 6 * * MON' # 09:00 Romania time permissions: contents: write @@ -43,6 +42,7 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: + base: main commit-message: "Auto-sync documentation from latest content of bemanproject/beman" branch: auto/sync-docs title: "Weekly docs sync" From d43d557840fec3b07c785d711c0f17947dce6647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Tue, 9 Dec 2025 02:23:04 +0200 Subject: [PATCH 4/5] Tweaks --- .github/workflows/sync-docs.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 3a5c1ba..6b622cf 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -8,7 +8,8 @@ on: workflow_call: workflow_dispatch: schedule: - - cron: '0 6 * * MON' # 09:00 Romania time + # 09:00 EEST/EET (Romania) ≈ 06:00 UTC + - cron: '0 6 * * MON' permissions: contents: write @@ -23,12 +24,14 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout beman repo uses: actions/checkout@v4 with: repository: bemanproject/beman path: beman + token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python uses: actions/setup-python@v5 @@ -42,9 +45,10 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: + github_token: ${{ secrets.GITHUB_TOKEN }} base: main - commit-message: "Auto-sync documentation from latest content of bemanproject/beman" branch: auto/sync-docs + commit-message: "Auto-sync documentation from latest content of bemanproject/beman" title: "Weekly docs sync" body: | Automated sync of documentation and images from latest content of bemanproject/beman. From 11347342d930ec4bd97f6d3bf20bc8899b543dfc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Darius=20Nea=C8=9Bu?= Date: Tue, 9 Dec 2025 02:24:13 +0200 Subject: [PATCH 5/5] Tweaks --- .github/workflows/sync-docs.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/sync-docs.yml b/.github/workflows/sync-docs.yml index 6b622cf..3a5c1ba 100644 --- a/.github/workflows/sync-docs.yml +++ b/.github/workflows/sync-docs.yml @@ -8,8 +8,7 @@ on: workflow_call: workflow_dispatch: schedule: - # 09:00 EEST/EET (Romania) ≈ 06:00 UTC - - cron: '0 6 * * MON' + - cron: '0 6 * * MON' # 09:00 Romania time permissions: contents: write @@ -24,14 +23,12 @@ jobs: uses: actions/checkout@v4 with: fetch-depth: 0 - token: ${{ secrets.GITHUB_TOKEN }} - name: Checkout beman repo uses: actions/checkout@v4 with: repository: bemanproject/beman path: beman - token: ${{ secrets.GITHUB_TOKEN }} - name: Set up Python uses: actions/setup-python@v5 @@ -45,10 +42,9 @@ jobs: - name: Create Pull Request uses: peter-evans/create-pull-request@v6 with: - github_token: ${{ secrets.GITHUB_TOKEN }} base: main - branch: auto/sync-docs commit-message: "Auto-sync documentation from latest content of bemanproject/beman" + branch: auto/sync-docs title: "Weekly docs sync" body: | Automated sync of documentation and images from latest content of bemanproject/beman.