Skip to content

fix(install): initialize arrays with empty literals to prevent unboun… #58

fix(install): initialize arrays with empty literals to prevent unboun…

fix(install): initialize arrays with empty literals to prevent unboun… #58

name: Generate Catalog
on:
push:
branches: [ main, develop ]
concurrency:
group: ci-${{ github.ref }}
cancel-in-progress: false
jobs:
generate-catalog:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Fetch and rebase on latest remote changes
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git fetch origin
git rebase origin/${{ github.ref_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run catalog generation script
run: bash ./scripts/generate-catalog.sh
- name: Commit and push catalog if changed
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add opencode-catalog.json
if git diff --cached --quiet; then
echo "Catalog unchanged, skipping commit and push"
else
git commit -m "chore: update catalog [skip ci]"
git push origin ${{ github.ref_name }}
fi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}