Enrich Projects #2
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: Enrich Projects | |
| on: | |
| schedule: | |
| # Every Monday at 02:00 UTC | |
| - cron: "0 2 * * 1" | |
| workflow_dispatch: {} | |
| concurrency: | |
| group: enrich-projects | |
| cancel-in-progress: true | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| enrich: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: 20 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Run enrichment | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: node scripts/enrich-projects.mjs | |
| - name: Open PR with enriched data | |
| uses: peter-evans/create-pull-request@c5a7806660adbe173f04e3e038b0ccdcd758773c # v6 | |
| with: | |
| commit-message: "chore: update enriched project data" | |
| branch: chore/enrich-projects | |
| base: main | |
| delete-branch: true | |
| add-paths: data/projects.enriched.json | |
| title: "chore: update enriched project data" | |
| body: | | |
| Weekly automated update of `data/projects.enriched.json`. | |
| Pulls latest star counts, last-push dates, languages, and computed | |
| statuses from the GitHub API for all tracked projects. | |
| This PR was opened automatically and is safe to merge. | |
| labels: automated |