diff --git a/.mokogitea/sync-wikis.yml b/.mokogitea/sync-wikis.yml new file mode 100644 index 0000000..6c88dbb --- /dev/null +++ b/.mokogitea/sync-wikis.yml @@ -0,0 +1,41 @@ +# Copyright (C) 2026 Moko Consulting +# +# SPDX-License-Identifier: GPL-3.0-or-later +# +# FILE INFORMATION +# DEFGROUP: Gitea.Workflow +# INGROUP: MokoStandards.Maintenance +# REPO: https://git.mokoconsulting.tech/MokoConsulting/moko-platform +# PATH: /.gitea/workflows/sync-wikis.yml +# BRIEF: Daily sync of all Gitea wikis to consolidated GitHub wiki repo + +name: Sync Wikis to GitHub + +on: + schedule: + - cron: '0 5 * * *' # Daily at 5am UTC + workflow_dispatch: + +permissions: + contents: read + +env: + FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true + +jobs: + sync-wikis: + name: Export wikis to GitHub + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Sync all wikis + env: + GH_TOKEN: ${{ secrets.GH_TOKEN }} + GITEA_URL: ${{ vars.GITEA_URL || 'https://git.mokoconsulting.tech' }} + run: | + if [ -z "$GH_TOKEN" ]; then + echo "::error::GH_TOKEN secret not set" + exit 1 + fi + bash scripts/sync-wikis-to-github.sh