Fix missing double quotes YAML #20
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: Translate Documentation | |
| on: | |
| push: | |
| branches: | |
| - master | |
| jobs: | |
| translate: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 2 | |
| - name: Send translation request | |
| run: | | |
| BASE_SHA="${{ github.event.before }}" | |
| HEAD_SHA="${{ github.sha }}" | |
| REPO="${GITHUB_REPOSITORY#*/}" | |
| BRANCHNAME="master" | |
| SOURCE_FOLDER="en/" | |
| TARGET_FOLDER="" | |
| echo "==== Translation Request Parameters ====" | |
| echo "Base SHA: $BASE_SHA" | |
| echo "Head SHA: $HEAD_SHA" | |
| echo "Repository: $REPO" | |
| echo "Source Folder: $SOURCE_FOLDER" | |
| echo "Target Folder: $TARGET_FOLDER" | |
| echo "========================================" | |
| curl -X POST "https://api.aspose.ai/slides/internal-services/translate-documentation" \ | |
| -H "Content-Type: application/json" \ | |
| -d "{ | |
| \"baseSha\": \"$BASE_SHA\", | |
| \"headSha\": \"$HEAD_SHA\", | |
| \"repo\": \"$REPO\", | |
| \"branchName\": \"$BRANCHNAME\", | |
| \"sourceFolder\": \"$SOURCE_FOLDER\", | |
| \"targetFolder\": \"$TARGET_FOLDER\" | |
| }" | |