1- name : Update python SDK
1+ name : Update python-sdk SDK
22
33on :
4+ # Çàïóñêàòèñÿ ðàç íà òèæäåíü (ó íåä³ëþ î 00:00 çà UTC)
45 schedule :
56 - cron : ' 0 0 * * 0'
7+ # Äîäàòêîâî, ùîá ìàòè ìîæëèâ³ñòü çàïóñòèòè âðó÷íó
68 workflow_dispatch :
79
810permissions :
911 contents : write
10- workflows : write
1112
1213jobs :
1314 update_python_sdk :
@@ -16,29 +17,20 @@ jobs:
1617 steps :
1718 - name : Checkout repository
1819 uses : actions/checkout@v3
19- with :
20- fetch-depth : 0
2120
22- # 1. Ñïî÷àòêó êîíô³ãóðóºìî Git ³ ï³äòÿãóºìî çì³íè
23- - name : Pull latest changes
24- run : |
25- git config user.name "GitHub Action"
26- git config user.email "action@github.com"
27- git pull --rebase origin main
28-
29- # 2. Òåïåð çàâàíòàæóºìî àðõ³â
30- - name : Download python.tgz
21+ - name : Download csharp.tgz
3122 run : |
3223 curl -L -o python.tgz https://app.api2cart.com/sdk/openapi/python.tgz
3324
34- # 3. Ðîçïàêîâóºìî
25+ # Ðîçïàêîâóºìî, âèäàëÿþ÷è 1 ð³âåíü (ïàïêó csharp)
3526 - name : Extract python.tgz
3627 run : |
3728 tar -xzf python.tgz --strip-components=1
3829
39- # 4. Äîäàºìî çì³íè, êîì³òèìî ³ ïóøèìî
40- - name : Commit and push changes
30+ - name : Commit changes
4131 run : |
32+ git config user.name "GitHub Action"
33+ git config user.email "action@github.com"
4234 git add .
43- git diff-index --quiet HEAD || git commit -m "Update python SDK [skip ci]"
44- git push origin HEAD:main
35+ git diff-index --quiet HEAD || git commit -m "Update scala SDK [skip ci]"
36+ git push
0 commit comments