Update python-sdk SDK #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update python-sdk SDK | |
| on: | |
| # Çàïóñêàòèñÿ ðàç íà òèæäåíü (ó íåä³ëþ î 00:00 çà UTC) | |
| schedule: | |
| - cron: '0 0 * * 0' | |
| # Äîäàòêîâî, ùîá ìàòè ìîæëèâ³ñòü çàïóñòèòè âðó÷íó | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| jobs: | |
| update_csharp_sdk: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v3 | |
| - name: Download python.tgz | |
| run: | | |
| curl -L -o python.tgz https://app.api2cart.com/sdk/openapi/python.tgz | |
| # Ðîçïàêîâóºìî, âèäàëÿþ÷è 1 ð³âåíü (ïàïêó csharp) | |
| - name: Extract python.tgz | |
| run: | | |
| tar -xzf python.tgz --strip-components=1 | |
| - name: Commit changes | |
| run: | | |
| git config user.name "GitHub Action" | |
| git config user.email "action@github.com" | |
| git add . | |
| git diff-index --quiet HEAD || git commit -m "Update python SDK [skip ci]" | |
| git push |