Skip to content

Update uv build version #11

Update uv build version

Update uv build version #11

---
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@3259c6206f993105e3a61b142c2d97bf4b9ef83d # v7.1.0
- 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@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
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
...