Files
uv/.github/workflows/publish-versions.yml
T
renovate[bot] ff577a2edf Update astral-sh/setup-uv action to v7.3.0 (#17927)
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
[@&#8203;eifinger](https://redirect.github.com/eifinger)
([#&#8203;762](https://redirect.github.com/astral-sh/setup-uv/issues/762))
- fix: use --clear to create venv
[@&#8203;eifinger](https://redirect.github.com/eifinger)
([#&#8203;761](https://redirect.github.com/astral-sh/setup-uv/issues/761))

#### 🚀 Enhancements

- feat: add venv-path input for activate-environment
[@&#8203;eifinger](https://redirect.github.com/eifinger)
([#&#8203;746](https://redirect.github.com/astral-sh/setup-uv/issues/746))

#### 🧰 Maintenance

- chore: update known checksums for 0.10.0
@&#8203;[github-actions\[bot\]](https://redirect.github.com/apps/github-actions)
([#&#8203;759](https://redirect.github.com/astral-sh/setup-uv/issues/759))
- refactor: tilde-expansion tests as unittests and no self-hosted tests
[@&#8203;eifinger](https://redirect.github.com/eifinger)
([#&#8203;760](https://redirect.github.com/astral-sh/setup-uv/issues/760))
- chore: update known checksums for 0.9.30
@&#8203;[github-actions\[bot\]](https://redirect.github.com/apps/github-actions)
([#&#8203;756](https://redirect.github.com/astral-sh/setup-uv/issues/756))
- chore: update known checksums for 0.9.29
@&#8203;[github-actions\[bot\]](https://redirect.github.com/apps/github-actions)
([#&#8203;748](https://redirect.github.com/astral-sh/setup-uv/issues/748))

#### 📚 Documentation

- Fix punctuation
[@&#8203;pm-dev563](https://redirect.github.com/pm-dev563)
([#&#8203;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
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;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
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;751](https://redirect.github.com/astral-sh/setup-uv/issues/751))
- Bump actions/checkout from 6.0.1 to 6.0.2
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;740](https://redirect.github.com/astral-sh/setup-uv/issues/740))
- Bump release-drafter/release-drafter from 6.1.0 to 6.2.0
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;743](https://redirect.github.com/astral-sh/setup-uv/issues/743))
- Bump eifinger/actionlint-action from 1.9.3 to 1.10.0
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;731](https://redirect.github.com/astral-sh/setup-uv/issues/731))
- Bump actions/setup-node from 6.1.0 to 6.2.0
@&#8203;[dependabot\[bot\]](https://redirect.github.com/apps/dependabot)
([#&#8203;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>
2026-02-11 17:59:49 -06:00

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"