Build data #14
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: Build data | |
| on: | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| build: | |
| name: Build | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| - name: Build | |
| run: | | |
| git config user.name 'github-actions[bot]' | |
| git config user.email 'github-actions[bot]@users.noreply.github.com' | |
| git checkout -b build-data | |
| uv run contributor-network data data | |
| uv run contributor-network csvs data | |
| git add . | |
| git commit -m "chore: update data" | |
| git push -u origin build-data | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PYTHONUNBUFFERED: "1" | |
| - name: Create PR | |
| run: gh pr create --fill | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |