Skip to content

Merge branch 'master' of https://github.com/ZenHG/opencode-moa #104

Merge branch 'master' of https://github.com/ZenHG/opencode-moa

Merge branch 'master' of https://github.com/ZenHG/opencode-moa #104

Workflow file for this run

name: Layer 0 Static Verify
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
static-check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Run T0 static verify
shell: pwsh
run: pwsh .opencode/tests/T0-static-verify.ps1
verify:
runs-on: ubuntu-latest
needs: static-check
permissions:
contents: read
steps:
- uses: actions/checkout@v4
- name: Run image anchor verify
shell: pwsh
run: pwsh scripts/verify-images.ps1
- name: Run T1 consistency check
shell: pwsh
run: pwsh .opencode/tests/T1-readme-consistency.ps1
sync-docs:
runs-on: ubuntu-latest
needs: verify
if: github.event_name == 'push' && !contains(github.event.head_commit.message, '[skip sync]')
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Sync deployment manual from agent YAML
shell: pwsh
run: pwsh scripts/sync-docs.ps1
- name: Commit doc sync
if: success()
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git diff --quiet docs/ && echo "No doc changes" && exit 0
git add docs/*.md
git commit -m "docs: auto-sync deployment manual from agents [skip ci]"
git push
translate:
runs-on: ubuntu-latest
needs: verify
if: github.event_name == 'push' && contains(github.event.head_commit.message, 'README')
permissions:
models: read
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Auto-translate READMEs
shell: pwsh
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
$env:GITHUB_TOKEN = "${{ secrets.GITHUB_TOKEN }}"
pwsh scripts/translate-readmes.ps1
- name: Commit translations
if: success()
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git diff --quiet README.*.md && echo "No translation changes" && exit 0
git add README.*.md
git commit -m "i18n: auto-translate READMEs [skip ci]"
git push