name: Label Approved on: schedule: - cron: "0 12 * * *" workflow_dispatch: permissions: {} env: UV_NO_SYNC: true jobs: label-approved: if: github.repository_owner == 'fastapi' runs-on: ubuntu-latest permissions: pull-requests: write timeout-minutes: 7 steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: Set up Python uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: python-version-file: ".python-version" - name: Setup uv uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1 with: version: "latest-known" enable-cache: true cache-suffix: github-actions cache-dependency-glob: | pyproject.toml uv.lock - name: Install GitHub Actions dependencies run: uv sync --locked --no-dev --group github-actions - name: Label Approved run: uv run ./scripts/label_approved.py env: TOKEN: ${{ secrets.GITHUB_TOKEN }} CONFIG: > { "approved-1": { "number": 1, "await_label": "awaiting-review" } }