ff577a2edf
This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [astral-sh/setup-uv](https://redirect.github.com/astral-sh/setup-uv) | action | minor | `v7.2.1` → `v7.3.0` | --- ### Release Notes <details> <summary>astral-sh/setup-uv (astral-sh/setup-uv)</summary> ### [`v7.3.0`](https://redirect.github.com/astral-sh/setup-uv/releases/tag/v7.3.0): 🌈 New features and bug fixes for activate-environment [Compare Source](https://redirect.github.com/astral-sh/setup-uv/compare/v7.2.1...v7.3.0) #### Changes This release contains a few bug fixes and a new feature for the activate-environment functionality. #### 🐛 Bug fixes - fix: warn instead of error when no python to cache [@​eifinger](https://redirect.github.com/eifinger) ([#​762](https://redirect.github.com/astral-sh/setup-uv/issues/762)) - fix: use --clear to create venv [@​eifinger](https://redirect.github.com/eifinger) ([#​761](https://redirect.github.com/astral-sh/setup-uv/issues/761)) #### 🚀 Enhancements - feat: add venv-path input for activate-environment [@​eifinger](https://redirect.github.com/eifinger) ([#​746](https://redirect.github.com/astral-sh/setup-uv/issues/746)) #### 🧰 Maintenance - chore: update known checksums for 0.10.0 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​759](https://redirect.github.com/astral-sh/setup-uv/issues/759)) - refactor: tilde-expansion tests as unittests and no self-hosted tests [@​eifinger](https://redirect.github.com/eifinger) ([#​760](https://redirect.github.com/astral-sh/setup-uv/issues/760)) - chore: update known checksums for 0.9.30 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​756](https://redirect.github.com/astral-sh/setup-uv/issues/756)) - chore: update known checksums for 0.9.29 @​[github-actions\[bot\]](https://redirect.github.com/apps/github-actions) ([#​748](https://redirect.github.com/astral-sh/setup-uv/issues/748)) #### 📚 Documentation - Fix punctuation [@​pm-dev563](https://redirect.github.com/pm-dev563) ([#​747](https://redirect.github.com/astral-sh/setup-uv/issues/747)) #### ⬆️ Dependency updates - Bump typesafegithub/github-actions-typing from 2.2.1 to 2.2.2 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​753](https://redirect.github.com/astral-sh/setup-uv/issues/753)) - Bump peter-evans/create-pull-request from 8.0.0 to 8.1.0 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​751](https://redirect.github.com/astral-sh/setup-uv/issues/751)) - Bump actions/checkout from 6.0.1 to 6.0.2 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​740](https://redirect.github.com/astral-sh/setup-uv/issues/740)) - Bump release-drafter/release-drafter from 6.1.0 to 6.2.0 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​743](https://redirect.github.com/astral-sh/setup-uv/issues/743)) - Bump eifinger/actionlint-action from 1.9.3 to 1.10.0 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​731](https://redirect.github.com/astral-sh/setup-uv/issues/731)) - Bump actions/setup-node from 6.1.0 to 6.2.0 @​[dependabot\[bot\]](https://redirect.github.com/apps/dependabot) ([#​738](https://redirect.github.com/astral-sh/setup-uv/issues/738)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - Between 12:00 AM and 03:59 AM, only on Monday ( * 0-3 * * 1 ) (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR was generated by [Mend Renovate](https://mend.io/renovate/). View the [repository job log](https://developer.mend.io/github/astral-sh/uv). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi45NS4yIiwidXBkYXRlZEluVmVyIjoiNDIuOTUuMiIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiYnVpbGQ6c2tpcC1yZWxlYXNlIiwiaW50ZXJuYWwiXX0=--> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
76 lines
2.5 KiB
YAML
76 lines
2.5 KiB
YAML
# Publish uv version information to the versions repository.
|
|
#
|
|
# Assumed to run as a subworkflow of .github/workflows/release.yml; specifically, as a post-announce
|
|
# job within `cargo-dist`.
|
|
name: publish-versions
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
plan:
|
|
required: true
|
|
type: string
|
|
|
|
permissions: {}
|
|
|
|
jobs:
|
|
publish-versions:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
VERSION: ${{ fromJson(inputs.plan).announcement_tag }}
|
|
steps:
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: "Set branch name"
|
|
run: echo "BRANCH_NAME=update-versions-$VERSION-$(date +%s)" >> $GITHUB_ENV
|
|
|
|
- name: "Clone versions repo"
|
|
run: git clone https://${{ secrets.ASTRAL_VERSIONS_PAT }}@github.com/astral-sh/versions.git astral-versions
|
|
|
|
- name: "Install uv"
|
|
uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
|
|
|
|
- name: "Update versions"
|
|
env:
|
|
PLAN: ${{ inputs.plan }}
|
|
run: printf '%s' "$PLAN" | uv run astral-versions/scripts/convert-cargo-dist-plan.py | uv run astral-versions/scripts/insert-versions.py --name uv
|
|
|
|
- name: "Commit versions"
|
|
working-directory: astral-versions
|
|
run: |
|
|
git config user.name "astral-versions-bot"
|
|
git config user.email "176161322+astral-versions-bot@users.noreply.github.com"
|
|
|
|
git checkout -b "$BRANCH_NAME"
|
|
git add -A
|
|
git commit -m "Update uv to version $VERSION"
|
|
|
|
- name: "Create Pull Request"
|
|
working-directory: astral-versions
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ASTRAL_VERSIONS_PAT }}
|
|
run: |
|
|
pull_request_title="Add uv $VERSION"
|
|
|
|
gh pr list --state open --json title --jq ".[] | select(.title == \"$pull_request_title\") | .number" | \
|
|
xargs -I {} gh pr close {}
|
|
|
|
git push origin "$BRANCH_NAME"
|
|
|
|
gh pr create --base main --head "$BRANCH_NAME" \
|
|
--title "$pull_request_title" \
|
|
--body "Automated versions update for $VERSION" \
|
|
--label "automation"
|
|
|
|
- name: "Merge Pull Request"
|
|
if: ${{ !fromJson(inputs.plan).announcement_tag_is_implicit }}
|
|
working-directory: astral-versions
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.ASTRAL_VERSIONS_PAT }}
|
|
run: |
|
|
# Wait for PR to be created before merging
|
|
sleep 10
|
|
gh pr merge --squash "$BRANCH_NAME"
|