Skip to content

Commit 688e61b

Browse files
committed
add python
1 parent c1f691f commit 688e61b

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/autogen-remote-changes.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,31 @@ on: [push, pull_request]
1010
jobs:
1111
update-sdk:
1212
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
python-version: ["3.11"]
1316
steps:
1417
- name: Checkout repository
1518
run: |
1619
git clone https://github.com/${{ github.repository }} repo
1720
cd repo
1821
git config --global user.name "github-actions[bot]"
1922
git config --global user.email "github-actions[bot]@users.noreply.github.com"
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Set up Node.js
28+
uses: actions/setup-node@v3
29+
with:
30+
node-version: '18'
31+
- name: Install OpenAPI Generator CLI
32+
run: npm install @openapitools/openapi-generator-cli -g
33+
- name: Install dependencies
34+
run: |
35+
cd repo
36+
python -m pip install --upgrade pip
37+
pip install -r requirements.txt
2038
- name: Pull and generate SDK
2139
run: |
2240
cd repo
@@ -49,7 +67,7 @@ jobs:
4967
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5068
run: |
5169
PR_TITLE="Auto-update SDK on $(date +'%Y-%m-%d')"
52-
PR_BODY="This pull request was automatically created by GitHub Actions to update the SDK."
70+
PR_BODY="This pull request was automatically created by GitHub Actions to update the SDK with the latest remote OpenAPI specification."
5371
curl -H "Authorization: token $GITHUB_TOKEN" \
5472
-X POST \
5573
-H "Content-Type: application/json" \

0 commit comments

Comments
 (0)