Skip to content

Commit c828f9c

Browse files
authored
Merge branch 'main' into patch-1
2 parents d70a7cd + 198b763 commit c828f9c

22 files changed

Lines changed: 242 additions & 309 deletions

.github/labeler.yml

Lines changed: 0 additions & 24 deletions
This file was deleted.

.github/latest-changes.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
auto-labels:
2+
docs:
3+
- docs/**
4+
- docs_src/**
5+
internal:
6+
- .github/**
7+
- scripts/**
8+
- .gitignore
9+
- .pre-commit-config.yaml
10+
- requirements*.txt
11+
- uv.lock

.github/pr-push.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
workflows:
2+
- .github/workflows/pre-commit.yml

.github/pr-submit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
workflows:
2+
- .github/workflows/bump-pre-commit-hooks.yml
3+
- .github/workflows/prepare-release.yml

.github/workflows/build-docs.yml

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
outputs:
1818
docs: ${{ steps.filter.outputs.docs }}
1919
steps:
20-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
20+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2121
# For pull requests it's not necessary to checkout the code but for the main branch it is
2222
with:
2323
persist-credentials: false
@@ -48,29 +48,23 @@ jobs:
4848
env:
4949
GITHUB_CONTEXT: ${{ toJson(github) }}
5050
run: echo "$GITHUB_CONTEXT"
51-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
51+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
5252
with:
5353
persist-credentials: false
5454
- name: Set up Python
55-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
55+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
5656
with:
5757
python-version-file: ".python-version"
5858
- name: Setup uv
59-
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
59+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
6060
with:
61-
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
62-
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
63-
version: "0.11.18"
61+
version: "latest-known"
6462
enable-cache: true
6563
cache-dependency-glob: |
6664
pyproject.toml
6765
uv.lock
6866
- name: Install docs extras
6967
run: uv sync --locked --no-dev --group docs
70-
- uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
71-
with:
72-
key: mkdocs-cards-${{ github.ref }}
73-
path: .cache
7468
- name: Build Docs
7569
run: uv run ./scripts/docs.py build
7670
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1

.github/workflows/bump-pre-commit-hooks.yml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,46 +12,50 @@ jobs:
1212
if: github.repository_owner == 'fastapi'
1313
runs-on: ubuntu-latest
1414
timeout-minutes: 10
15+
permissions:
16+
contents: read
17+
id-token: write
1518
steps:
1619
- name: Dump GitHub context
1720
env:
1821
GITHUB_CONTEXT: ${{ toJson(github) }}
1922
run: echo "$GITHUB_CONTEXT"
20-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
23+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2124
with:
22-
token: ${{ secrets.SQLMODEL_LATEST_CHANGES }}
23-
persist-credentials: true
25+
persist-credentials: false
2426
- name: Set up Python
25-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
27+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
2628
with:
2729
python-version-file: ".python-version"
2830
- name: Setup uv
29-
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
31+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
3032
with:
31-
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
32-
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
33-
version: "0.11.18"
33+
version: "latest-known"
3434
cache-dependency-glob: |
3535
pyproject.toml
3636
uv.lock
3737
- name: Bump pre-commit hooks
3838
run: uv run prek auto-update --freeze --cooldown-days 7
39+
- name: Get PR Submit token
40+
id: pr-submit
41+
uses: tiangolo/pr-submit@d802fdf59bde80bc3eb8bd3259f4cbeec63de4aa # 0.0.1
3942
- name: Create pull request
4043
env:
41-
GH_TOKEN: ${{ secrets.SQLMODEL_LATEST_CHANGES }}
44+
GH_TOKEN: ${{ steps.pr-submit.outputs.token }}
4245
BASE_BRANCH: ${{ github.event.repository.default_branch }}
4346
run: |
4447
set -euo pipefail
4548
if git diff --quiet; then
4649
echo "No pre-commit hook updates available"
4750
exit 0
4851
fi
49-
git config user.name "github-actions[bot]"
50-
git config user.email "github-actions[bot]@users.noreply.github.com"
52+
git config user.name "pr-submit[bot]"
53+
git config user.email "pr-submit[bot]@users.noreply.github.com"
5154
branch="bump-pre-commit-hooks"
5255
git switch -C "$branch"
5356
git add .pre-commit-config.yaml
5457
git commit -m "⬆ Bump pre-commit hooks"
58+
gh auth setup-git
5559
git push --force origin "$branch"
5660
if [ -z "$(gh pr list --head "$branch" --state open --json number --jq '.[].number')" ]; then
5761
gh pr create \

.github/workflows/create-draft-release.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,18 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
with:
2727
ref: ${{ github.event.repository.default_branch }}
2828
persist-credentials: true
2929
- name: Set up Python
30-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
30+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3131
with:
3232
python-version-file: ".python-version"
3333
- name: Install uv
34-
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
34+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
3535
with:
36-
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
37-
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
38-
version: "0.11.18"
36+
version: "latest-known"
3937
- name: Extract release details
4038
id: release-details
4139
run: |

.github/workflows/deploy-docs.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,17 @@ jobs:
2222
env:
2323
GITHUB_CONTEXT: ${{ toJson(github) }}
2424
run: echo "$GITHUB_CONTEXT"
25-
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
25+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
with:
2727
persist-credentials: false
2828
- name: Set up Python
29-
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
29+
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
3030
with:
3131
python-version-file: ".python-version"
3232
- name: Setup uv
33-
uses: astral-sh/setup-uv@d31148d669074a8d0a63714ba94f3201e7020bc3 # v8.3.0
33+
uses: astral-sh/setup-uv@20cfd1bf945f4377ade1205e4dbc17946fc9a30d # v10.0.1
3434
with:
35-
# Before upgrading uv version, make sure astral-sh/setup-uv knows its checksum.
36-
# See: https://github.com/astral-sh/setup-uv/issues/851#issuecomment-4282017837
37-
version: "0.11.18"
35+
version: "latest-known"
3836
enable-cache: false
3937
- name: Install GitHub Actions dependencies
4038
run: uv sync --locked --no-dev --group github-actions

.github/workflows/labeler.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

.github/workflows/latest-changes.yml

Lines changed: 0 additions & 46 deletions
This file was deleted.

0 commit comments

Comments
 (0)