Browse Source

👷 Upgrade custom GitHub Action comment-docs-preview-in-pr (#10916)

pull/10918/head
Sebastián Ramírez 1 year ago
committed by GitHub
parent
commit
423cdd24cc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      .github/actions/comment-docs-preview-in-pr/Dockerfile
  2. 3
      .github/actions/comment-docs-preview-in-pr/app/main.py
  3. 4
      .github/actions/comment-docs-preview-in-pr/requirements.txt

6
.github/actions/comment-docs-preview-in-pr/Dockerfile

@ -1,6 +1,8 @@
FROM python:3.9 FROM python:3.10
RUN pip install httpx "pydantic==1.5.1" pygithub COPY ./requirements.txt /app/requirements.txt
RUN pip install -r /app/requirements.txt
COPY ./app /app COPY ./app /app

3
.github/actions/comment-docs-preview-in-pr/app/main.py

@ -6,7 +6,8 @@ from typing import Union
import httpx import httpx
from github import Github from github import Github
from github.PullRequest import PullRequest from github.PullRequest import PullRequest
from pydantic import BaseModel, BaseSettings, SecretStr, ValidationError from pydantic import BaseModel, SecretStr, ValidationError
from pydantic_settings import BaseSettings
github_api = "https://api.github.com" github_api = "https://api.github.com"

4
.github/actions/comment-docs-preview-in-pr/requirements.txt

@ -0,0 +1,4 @@
PyGithub
pydantic>=2.5.3,<3.0.0
pydantic-settings>=2.1.0,<3.0.0
httpx
Loading…
Cancel
Save