Vendor apm-generated .claude/ and .opencode/ into git #14
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: APM Sync Check | |
| on: | |
| pull_request: | |
| push: | |
| branches: [main] | |
| env: | |
| APM: uvx --from git+https://github.com/microsoft/apm@v0.8.10 apm | |
| jobs: | |
| apm-sync: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - name: Regenerate vendored APM output from scratch | |
| run: | | |
| rm -rf .claude/ .opencode/ | |
| $APM install --force -t claude | |
| $APM install --force -t opencode | |
| - name: Check for drift | |
| run: | | |
| if [ -n "$(git status --porcelain .claude/ .opencode/)" ]; then | |
| echo "::error::Vendored APM output out of sync — run: just agent::apm-vendor" | |
| git diff .claude/ .opencode/ | |
| git status .claude/ .opencode/ | |
| exit 1 | |
| fi |