Update uv build version #6
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 uv build version | |
| on: | |
| schedule: | |
| - cron: "0 6 * * 1" # mondays at 6am | |
| workflow_dispatch: | |
| jobs: | |
| update-uv-build-version: | |
| name: Update uv_build version | |
| if: github.repository_owner == 'pypa' # suppress noise in forks | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| persist-credentials: false | |
| - name: Set up uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Update uv_build version | |
| id: update_script | |
| run: uv run scripts/update_uv_build_version.py | |
| - # If there are no changes, no pull request will be created and the action exits silently. | |
| name: Create Pull Request | |
| uses: peter-evans/create-pull-request@v7 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| commit-message: Update uv_build version to ${{ steps.update_script.outputs.version }} | |
| title: Update uv_build version to ${{ steps.update_script.outputs.version }} | |
| draft: true # Trigger CI by un-drafting the PR, otherwise `GITHUB_TOKEN` PRs don't trigger CI. | |
| body: | | |
| Automated update of uv_build version bounds for uv ${{ steps.update_script.outputs.version }}. | |
| This PR was created automatically by the cron workflow, ping `@konstin` for problems. | |
| branch: bot/update-uv-build-version | |
| delete-branch: true | |
| ... |