mirror of
https://github.com/fastapi/fastapi.git
synced 2025-12-31 18:20:45 -05:00
Bumps [astral-sh/setup-uv](https://github.com/astral-sh/setup-uv) from 6 to 7. - [Release notes](https://github.com/astral-sh/setup-uv/releases) - [Commits](https://github.com/astral-sh/setup-uv/compare/v6...v7) --- updated-dependencies: - dependency-name: astral-sh/setup-uv dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
50 lines
1.1 KiB
YAML
50 lines
1.1 KiB
YAML
name: Label Approved
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 12 * * *"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
pull-requests: write
|
|
|
|
env:
|
|
UV_SYSTEM_PYTHON: 1
|
|
|
|
jobs:
|
|
label-approved:
|
|
if: github.repository_owner == 'fastapi'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Dump GitHub context
|
|
env:
|
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
|
run: echo "$GITHUB_CONTEXT"
|
|
- uses: actions/checkout@v5
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: "3.11"
|
|
- name: Setup uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
version: "0.4.15"
|
|
enable-cache: true
|
|
cache-dependency-glob: |
|
|
requirements**.txt
|
|
pyproject.toml
|
|
- name: Install GitHub Actions dependencies
|
|
run: uv pip install -r requirements-github-actions.txt
|
|
- name: Label Approved
|
|
run: python ./scripts/label_approved.py
|
|
env:
|
|
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
CONFIG: >
|
|
{
|
|
"approved-1":
|
|
{
|
|
"number": 1,
|
|
"await_label": "awaiting-review"
|
|
}
|
|
}
|