chore(config): add formatter setting #64
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: 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 }} |