Skip to content

Add OutcomeLoop Codex plugin #121

Add OutcomeLoop Codex plugin

Add OutcomeLoop Codex plugin #121

name: Sync marketplace artifacts
on:
pull_request:
paths:
- README.md
- plugins.json
- .agents/plugins/marketplace.json
- scripts/generate_plugins_json.py
push:
branches: [main]
paths:
- README.md
- plugins.json
- .agents/plugins/marketplace.json
- scripts/generate_plugins_json.py
permissions:
contents: write
jobs:
sync:
name: Sync marketplace artifacts with README
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.head_ref || github.ref_name }}
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Regenerate and commit if changed
run: |
python3 scripts/generate_plugins_json.py
if ! git diff --quiet -- plugins.json .agents/plugins/marketplace.json; then
echo "::notice::marketplace artifacts were out of sync — auto-committing"
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add plugins.json .agents/plugins/marketplace.json
git commit -m "chore: sync marketplace artifacts with README"
git push origin HEAD:${{ github.head_ref || github.ref_name }}
else
echo "marketplace artifacts are up to date"
fi