Update Project Catalog #241
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: Update Project Catalog | |
| on: | |
| push: | |
| branches: [main, development] | |
| pull_request: | |
| branches: [main, development] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "0 2 * * *" # daily at 2 AM UTC | |
| jobs: | |
| update-catalog: | |
| name: Update Project Catalog | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| with: | |
| token: ${{ secrets.PAT }} | |
| fetch-depth: 0 | |
| - name: Generate project catalog | |
| id: generate-catalog | |
| run: | | |
| chmod +x .github/scripts/generate-project-catalog.sh | |
| .github/scripts/generate-project-catalog.sh | |
| - name: Commit and push changes | |
| if: github.event_name != 'pull_request' | |
| run: | | |
| git config --local user.email "action@github.com" | |
| git config --local user.name "GitHub Action" | |
| git add Ivy-All-Projects.json | |
| git diff --staged --quiet || git commit -m "chore: update project catalog [skip ci]" | |
| git push origin main |