mirror of https://github.com/tiangolo/fastapi.git
👷 Update CI, permissions, debug
This commit is contained in:
parent
1a29cb841d
commit
43dccdda9d
|
|
@ -19,18 +19,15 @@ jobs:
|
||||||
job:
|
job:
|
||||||
if: github.repository_owner == 'fastapi'
|
if: github.repository_owner == 'fastapi'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
pull-requests: write
|
||||||
steps:
|
steps:
|
||||||
- name: Dump GitHub context
|
- name: Dump GitHub context
|
||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# Allow debugging with tmate
|
|
||||||
- name: Setup tmate session
|
|
||||||
uses: mxschmitt/action-tmate@v3
|
|
||||||
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
|
|
||||||
with:
|
|
||||||
limit-access-to-actor: true
|
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
|
|
@ -45,6 +42,13 @@ jobs:
|
||||||
pyproject.toml
|
pyproject.toml
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: uv pip install -r requirements-github-actions.txt
|
run: uv pip install -r requirements-github-actions.txt
|
||||||
|
# Allow debugging with tmate
|
||||||
|
- name: Setup tmate session
|
||||||
|
uses: mxschmitt/action-tmate@v3
|
||||||
|
# TODO: fix this
|
||||||
|
# if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
|
||||||
|
with:
|
||||||
|
limit-access-to-actor: true
|
||||||
- name: FastAPI People Contributors
|
- name: FastAPI People Contributors
|
||||||
run: python ./scripts/contributors.py
|
run: python ./scripts/contributors.py
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue